diff options
author | Mats Wichmann <mats@linux.com> | 2019-04-08 16:38:24 -0600 |
---|---|---|
committer | Mats Wichmann <mats@linux.com> | 2019-04-25 09:37:04 -0600 |
commit | f3c5ac37a96adc91d688d17a9ad462a95d32587c (patch) | |
tree | 5a9847b62b2f4408e48572a75cf797f409ebb4f9 /test/fixture | |
parent | f61d3bcd112285644c1a6ce253b267ef690a7e06 (diff) | |
download | scons-git-f3c5ac37a96adc91d688d17a9ad462a95d32587c.tar.gz |
[PR #3345] fix flake8 compliants on the PR
Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'test/fixture')
-rw-r--r-- | test/fixture/mycompile.py | 6 | ||||
-rw-r--r-- | test/fixture/myrewrite.py | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/test/fixture/mycompile.py b/test/fixture/mycompile.py index 275f7becf..27bf840e9 100644 --- a/test/fixture/mycompile.py +++ b/test/fixture/mycompile.py @@ -13,7 +13,7 @@ if __name__ == '__main__': with open(sys.argv[2], 'wb') as ofp: for f in sys.argv[3:]: with open(f, 'rb') as ifp: - lines = [l for l in ifp.readlines() if l != line] - for l in lines: - ofp.write(l) + lines = [ln for ln in ifp.readlines() if ln != line] + for ln in lines: + ofp.write(ln) sys.exit(0) diff --git a/test/fixture/myrewrite.py b/test/fixture/myrewrite.py index 95272b6ec..ad4609197 100644 --- a/test/fixture/myrewrite.py +++ b/test/fixture/myrewrite.py @@ -10,8 +10,8 @@ import sys if __name__ == '__main__': line = ('/*' + sys.argv[1] + '*/\n').encode() with open(sys.argv[2], 'rb') as ifp: - lines = [l for l in ifp.readlines() if l != line] + lines = [ln for ln in ifp.readlines() if ln != line] with open(sys.argv[2], 'wb') as ofp: - for l in lines: - ofp.write(l) + for ln in lines: + ofp.write(ln) sys.exit(0) |