summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-07-04 13:23:00 +0200
committerDavid Robillard <d@drobilla.net>2020-07-04 13:23:00 +0200
commitf6fa1464f788179c97ad555352ca18d9df851994 (patch)
tree6e28c0e16b6370b9ada15e26c369f64678e89f3f
parent984e0cdb0f22cf227b87cb9c71cdf858dd6f64e5 (diff)
downloadautowaf-f6fa1464f788179c97ad555352ca18d9df851994.tar.gz
autowaf-f6fa1464f788179c97ad555352ca18d9df851994.tar.bz2
autowaf-f6fa1464f788179c97ad555352ca18d9df851994.zip
Cleanup: Use two spaces before inline comments
Fixes flake8 warning E261.
-rw-r--r--extras/autowaf.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/extras/autowaf.py b/extras/autowaf.py
index 871a282..2b76474 100644
--- a/extras/autowaf.py
+++ b/extras/autowaf.py
@@ -221,7 +221,7 @@ def check_pkg(conf, spec, **kwargs):
if found:
pkg_name += 'D'
- args['mandatory'] = mandatory # Unsmash mandatory arg
+ args['mandatory'] = kwargs['mandatory'] # Unsmash mandatory arg
if not found:
found = conf.check_cfg(package=spec,
@@ -858,7 +858,7 @@ def test_file_equals(patha, pathb):
def bench_time():
- if hasattr(time, 'perf_counter'): # Added in Python 3.3
+ if hasattr(time, 'perf_counter'): # Added in Python 3.3
return time.perf_counter()
else:
return time.time()
@@ -933,7 +933,7 @@ class TestScope:
with tempfile.TemporaryFile() as stderr:
kwargs['stderr'] = stderr
output = self.run(test, **kwargs)
- stderr.seek(0, 2) # Seek to end
+ stderr.seek(0, 2) # Seek to end
return (output if not output else
self.run(
lambda: stderr.tell() > 0,