summaryrefslogtreecommitdiffstats
path: root/Lib/enum.py
diff options
context:
space:
mode:
authorEthan Furman <ethan@stoneleaf.us>2016-05-01 17:04:21 (GMT)
committerEthan Furman <ethan@stoneleaf.us>2016-05-01 17:04:21 (GMT)
commit354706915c1fdbcf8e26d90beacb8c84206da062 (patch)
treea080cd6627490bcfaec09ce5117aa0fe31adbfaa /Lib/enum.py
parent47d1d7f48a841dc5539638c3941445d8507e6beb (diff)
parent3803ad47bb443d9cad83fe968b1b82ad5bcb75f2 (diff)
downloadcpython-354706915c1fdbcf8e26d90beacb8c84206da062.zip
cpython-354706915c1fdbcf8e26d90beacb8c84206da062.tar.gz
cpython-354706915c1fdbcf8e26d90beacb8c84206da062.tar.bz2
issue26893: use mro() to examine class heirarchy
Diffstat (limited to 'Lib/enum.py')
-rw-r--r--Lib/enum.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/enum.py b/Lib/enum.py
index 476e3b3..c3a0a8b 100644
--- a/Lib/enum.py
+++ b/Lib/enum.py
@@ -124,7 +124,7 @@ class EnumMeta(type):
# save attributes from super classes so we know if we can take
# the shortcut of storing members in the class dict
- base_attributes = {a for b in bases for a in b.__dict__}
+ base_attributes = {a for b in enum_class.mro() for a in b.__dict__}
# Reverse value->name map for hashable values.
enum_class._value2member_map_ = {}