Skip to content

Commit

Permalink
Compile for flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignacio Avas committed May 4, 2017
1 parent 9b9fbd5 commit 7e12291
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions py101/modules/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ def runTest(self):
node
for node in ast.walk(body)
if isinstance(node, ast.Import) and
len(node.names) > 0 and
len([name for name in node.names if name.name == 'numbers']) > 0
len(node.names) > 0 and
len([name for name in node.names if name.name == 'numbers']) > 0
]

self.assertGreater(
Expand All @@ -52,10 +52,10 @@ def runTest(self):
node
for node in ast.walk(body)
if isinstance(node, ast.Call) and
isinstance(node.func, ast.Attribute) and
isinstance(node.func.value, ast.Name) and
node.func.value.id == 'numbers' and
node.func.attr == 'tangent'
isinstance(node.func, ast.Attribute) and
isinstance(node.func.value, ast.Name) and
node.func.value.id == 'numbers' and
node.func.attr == 'tangent'
]

self.assertGreater(
Expand Down

0 comments on commit 7e12291

Please sign in to comment.