summaryrefslogtreecommitdiffstats
path: root/bin/scons-diff.py
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2019-12-22 15:44:29 (GMT)
committerMats Wichmann <mats@linux.com>2019-12-23 16:52:35 (GMT)
commita5359e3f10a6bcdb5d9667c95c40ddd890b551e8 (patch)
treedd587ca78a6d4542c6bd968e4590b6671464d39d /bin/scons-diff.py
parent5a864bae1380155997f4041d607e4abcf74652ca (diff)
downloadSCons-a5359e3f10a6bcdb5d9667c95c40ddd890b551e8.zip
SCons-a5359e3f10a6bcdb5d9667c95c40ddd890b551e8.tar.gz
SCons-a5359e3f10a6bcdb5d9667c95c40ddd890b551e8.tar.bz2
syntax fixups suggested by PyCharm
Drop unneeded parens. Drop trailing semicolons. Triple double-quote docstrings. Regexes drop unneeded escapes. Spaces around parens, braces: remove/add. Some one-tuples get their missing closing comma. A couple of sets use set init syntax {foo} instead of set([iter]) now. And a fiddle in Node to reduce lookup time on md5 signature functions (came about because of a line-too-long issue, initially) Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'bin/scons-diff.py')
-rw-r--r--bin/scons-diff.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/scons-diff.py b/bin/scons-diff.py
index 687e7fa..0bed74b 100644
--- a/bin/scons-diff.py
+++ b/bin/scons-diff.py
@@ -30,7 +30,7 @@ Options:
opts, args = getopt.getopt(sys.argv[1:],
'c:dhnqrsu:',
- ['context=', 'help', 'recursive', 'unified='])
+ ['context=', 'help', 'recursive', 'unified='])
diff_type = None
edit_type = None
@@ -53,17 +53,17 @@ for o, a in opts:
diff_options.append(o)
elif o in ('-h', '--help'):
print(Usage)
- sys.exit(0)
- elif o in ('-n'):
+ sys.exit(0)
+ elif o in ('-n',):
diff_options.append(o)
edit_type = o
- elif o in ('-q'):
+ elif o in ('-q',):
diff_type = o
diff_line = lambda l, r: None
elif o in ('-r', '--recursive'):
recursive = True
diff_options.append(o)
- elif o in ('-s'):
+ elif o in ('-s',):
report_same = True
try: