diff options
Diffstat (limited to 'brain/py2stdlib.py')
-rw-r--r-- | brain/py2stdlib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/brain/py2stdlib.py b/brain/py2stdlib.py index 92c783b4..74d60280 100644 --- a/brain/py2stdlib.py +++ b/brain/py2stdlib.py @@ -26,7 +26,7 @@ def infer_func_form(node, base_type, context=None, enum=False): """Specific inference function for namedtuple or Python 3 enum. """ def infer_first(node): try: - value = node.infer(context=context).next() + value = next(node.infer(context=context)) if value is YES: raise UseInferenceDefault() else: |