From 8f58d22ad719049039b782801d26a77398bfbd75 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 16 May 2014 07:49:04 +0200 Subject: [PATCH] Fix lint --- qutebrowser/utils/misc.py | 2 +- scripts/cleanup.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qutebrowser/utils/misc.py b/qutebrowser/utils/misc.py index 142e34d3e..b78e641a0 100644 --- a/qutebrowser/utils/misc.py +++ b/qutebrowser/utils/misc.py @@ -54,7 +54,7 @@ def elide(text, length): if len(text) <= length: return text else: - return text[:length-1] + '\u2026' + return text[:length - 1] + '\u2026' def check_overflow(arg, ctype, fatal=True): diff --git a/scripts/cleanup.py b/scripts/cleanup.py index f74cc5b93..2a46805ba 100644 --- a/scripts/cleanup.py +++ b/scripts/cleanup.py @@ -36,11 +36,11 @@ def remove(path): """Remove either a file or directory unless --dry-run is given.""" if os.path.isdir(path): print("rm -r '{}'".format(path)) - if not '--dry-run' in sys.argv: + if '--dry-run' not in sys.argv: shutil.rmtree(path) else: print("rm '{}'".format(path)) - if not '--dry-run' in sys.argv: + if '--dry-run' not in sys.argv: os.remove(path)