summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcpopa <devnull@localhost>2014-07-25 14:07:13 +0200
committercpopa <devnull@localhost>2014-07-25 14:07:13 +0200
commit620f03121ee393a9a901c702d023a3b2ef13c75c (patch)
treed5164788b53a98952cb9ca0e1416821915a93b35
parent254b79d70be0240a89753d4c2dd123ea5a55934d (diff)
downloadastroid-620f03121ee393a9a901c702d023a3b2ef13c75c.tar.gz
Don't break of the first unknown basename.
-rw-r--r--brain/py2stdlib.py2
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