| Index: flake8-eyeo/flake8_eyeo.py |
| =================================================================== |
| --- a/flake8-eyeo/flake8_eyeo.py |
| +++ b/flake8-eyeo/flake8_eyeo.py |
| @@ -47,8 +47,9 @@ |
| def evaluate(node): |
| + names = {'__builtins__': {'True': True, 'False': False, 'None': None}} |
|
tlucas
2017/10/06 11:41:36
Why are these values necessary?
From what i under
Sebastian Noack
2017/10/06 18:11:09
True, False and None are special. They are the onl
|
| try: |
| - return eval(compile(ast.Expression(node), '', 'eval'), {}) |
| + return eval(compile(ast.Expression(node), '', 'eval'), names) |
| except Exception: |
| return VOLATILE |