diff options
author | cpopa <devnull@localhost> | 2014-07-25 14:07:13 +0200 |
---|---|---|
committer | cpopa <devnull@localhost> | 2014-07-25 14:07:13 +0200 |
commit | 620f03121ee393a9a901c702d023a3b2ef13c75c (patch) | |
tree | d5164788b53a98952cb9ca0e1416821915a93b35 | |
parent | 254b79d70be0240a89753d4c2dd123ea5a55934d (diff) | |
download | astroid-620f03121ee393a9a901c702d023a3b2ef13c75c.tar.gz |
Don't break of the first unknown basename.
-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 1116997..c801a92 100644 --- a/brain/py2stdlib.py +++ b/brain/py2stdlib.py @@ -287,7 +287,7 @@ def infer_enum_class(node, context=None): for basename in node.basenames: # TODO: doesn't handle subclasses yet. if basename not in names: - break + continue if node.root().name == 'enum': # Skip if the class is directly from enum module. break |