summaryrefslogtreecommitdiff
path: root/brain/py2stdlib.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2014-07-25 14:07:13 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2014-07-25 14:07:13 +0200
commit2baf182d5dde39921b6020e22544472d18917291 (patch)
treeb17096202704aa648db8337e03520eee2331db8a /brain/py2stdlib.py
parentaa2c97c318dd569e09329bab7e7ac8c4e1641bef (diff)
downloadastroid-git-2baf182d5dde39921b6020e22544472d18917291.tar.gz
Don't break of the first unknown basename.
Diffstat (limited to 'brain/py2stdlib.py')
-rw-r--r--brain/py2stdlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/brain/py2stdlib.py b/brain/py2stdlib.py
index 11169977..c801a92b 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