diff options
author | Mats Wichmann <mats@linux.com> | 2019-12-22 15:44:29 (GMT) |
---|---|---|
committer | Mats Wichmann <mats@linux.com> | 2019-12-23 16:52:35 (GMT) |
commit | a5359e3f10a6bcdb5d9667c95c40ddd890b551e8 (patch) | |
tree | dd587ca78a6d4542c6bd968e4590b6671464d39d /site_scons | |
parent | 5a864bae1380155997f4041d607e4abcf74652ca (diff) | |
download | SCons-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 'site_scons')
-rw-r--r-- | site_scons/Utilities.py | 2 | ||||
-rw-r--r-- | site_scons/soe_utils.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/site_scons/Utilities.py b/site_scons/Utilities.py index e8c0585..5bdcbf2 100644 --- a/site_scons/Utilities.py +++ b/site_scons/Utilities.py @@ -7,7 +7,7 @@ import distutils.util platform = distutils.util.get_platform() def is_windows(): - " Check if we're on a Windows platform" + """ Check if we're on a Windows platform""" if platform.startswith('win'): return True else: diff --git a/site_scons/soe_utils.py b/site_scons/soe_utils.py index 3b87dee..dfd605c 100644 --- a/site_scons/soe_utils.py +++ b/site_scons/soe_utils.py @@ -28,7 +28,7 @@ def soelim(target, source, env): def soscan(node, env, path): c = node.get_text_contents() - return re.compile(r"^[\.']so\s+(\S+)", re.M).findall(c) + return re.compile(r"^[.']so\s+(\S+)", re.M).findall(c) soelimbuilder = Builder(action = Action(soelim), source_scanner = Scanner(soscan)) |