From 0cf7d57bdebd919b3ab185ae4c4de389b11481eb Mon Sep 17 00:00:00 2001 From: VG Date: Fri, 9 Dec 2016 15:12:14 +0100 Subject: fix variable name --- clip | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clip b/clip index 880a23b..09e28f4 100755 --- a/clip +++ b/clip @@ -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) -- cgit v1.2.3