Skip to content

Commit

Permalink
Use generator expression with any/all
Browse files Browse the repository at this point in the history
  • Loading branch information
quantifiedcode-bot committed Dec 27, 2016
1 parent 495eb4f commit 39f0b61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fprettify/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,6 @@ def testmethod(testcase):
io.open(RESULT_FILE, 'w', encoding='utf-8').close()

for dirpath, dirnames, filenames in os.walk(BEFORE_DIR):
for example in [f for f in filenames if any([f.endswith(_) for _ in FORTRAN_EXTENSIONS])]:
for example in [f for f in filenames if any( f.endswith(_) for _ in FORTRAN_EXTENSIONS)]:
addtestmethod(FPrettifyTestCase, dirpath.replace(
BEFORE_DIR, u""), example)

0 comments on commit 39f0b61

Please sign in to comment.