summaryrefslogtreecommitdiff
path: root/astroid/tree/scoped_nodes.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2015-12-05 13:25:34 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2015-12-05 13:25:34 +0200
commita5debeece2475cb1f4dca31e4dd551eebb01205c (patch)
treeeab57bcb75c13a4c887ba9ddcfcd593ec4e6c31a /astroid/tree/scoped_nodes.py
parent689a4365cf52ddb91e27bfba404e4b971ebeecc9 (diff)
downloadastroid-git-a5debeece2475cb1f4dca31e4dd551eebb01205c.tar.gz
assigned_stmts methods have the same signature from now on.
They used to have different signatures and each one made assumptions about what could be passed to other implementations, leading to various possible crashes when one or more arguments weren't given. Closes issue #277.
Diffstat (limited to 'astroid/tree/scoped_nodes.py')
-rw-r--r--astroid/tree/scoped_nodes.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/astroid/tree/scoped_nodes.py b/astroid/tree/scoped_nodes.py
index a5fe473c..b9f29ca4 100644
--- a/astroid/tree/scoped_nodes.py
+++ b/astroid/tree/scoped_nodes.py
@@ -571,6 +571,7 @@ class Module(LocalsDictNodeNG):
all = self.locals['__all__'][-1]
else:
return default
+
try:
explicit = next(all.assigned_stmts())
except exceptions.InferenceError: