diff options
author | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2014-10-27 00:35:18 +0200 |
---|---|---|
committer | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2014-10-27 00:35:18 +0200 |
commit | 09cd8b7eefb021f2d8327e42614bca7cbb8915f2 (patch) | |
tree | e54d46837b31f00197106ad6f104f3444c65b521 /brain/py2stdlib.py | |
parent | 1c5cab5ce9c6bf5c2a161748d03a5fa44a69e15e (diff) | |
download | astroid-git-09cd8b7eefb021f2d8327e42614bca7cbb8915f2.tar.gz |
Make the source compatible with Python 2.7 and 3.3+.
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: |