diff options
author | VG <vg@devys.org> | 2016-12-09 15:12:14 +0100 |
---|---|---|
committer | VG <vg@devys.org> | 2016-12-09 15:12:14 +0100 |
commit | 0cf7d57bdebd919b3ab185ae4c4de389b11481eb (patch) | |
tree | 9dd201f45b146c727fc44ceeda959616658f4568 | |
parent | 7e666933b3407f5cdf7c6f3f50793d8eb2a6ba78 (diff) | |
download | clip-0cf7d57bdebd919b3ab185ae4c4de389b11481eb.tar.gz clip-0cf7d57bdebd919b3ab185ae4c4de389b11481eb.tar.bz2 clip-0cf7d57bdebd919b3ab185ae4c4de389b11481eb.zip |
fix variable name
-rwxr-xr-x | clip | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -40,7 +40,7 @@ def fileno(filelike): def secure_open(path, mode='r', *l, **kw): if os.path.islink(path): raise SecurityError("The clipboard file can not be a symlink") - real_mode = real_mode.replace('w', 'a') + real_mode = mode.replace('w', 'a') with open(path, real_mode, *l, **kw) as fo: if os.fstat(fileno(fo)) != os.stat(path): raise SecurityError("Intrusion might have been done on %s" % path) |