Index: flake8-eyeo/flake8_eyeo.py |
=================================================================== |
--- a/flake8-eyeo/flake8_eyeo.py |
+++ b/flake8-eyeo/flake8_eyeo.py |
@@ -46,8 +46,9 @@ |
def evaluate(node): |
+ names = {'__builtins__': {'True': True, 'False': False, 'None': None}} |
try: |
- return eval(compile(ast.Expression(node), '', 'eval'), {}) |
+ return eval(compile(ast.Expression(node), '', 'eval'), names) |
except Exception: |
return VOLATILE |