diff options
author | Ethan Furman <ethan@stoneleaf.us> | 2016-05-01 17:03:53 (GMT) |
---|---|---|
committer | Ethan Furman <ethan@stoneleaf.us> | 2016-05-01 17:03:53 (GMT) |
commit | 3803ad47bb443d9cad83fe968b1b82ad5bcb75f2 (patch) | |
tree | bfd94e70563850aebf96bc8767932fb74cf1e9e2 /Lib/enum.py | |
parent | dd1bcdf6187ff18fb1536a6190926b0f03336186 (diff) | |
download | cpython-3803ad47bb443d9cad83fe968b1b82ad5bcb75f2.zip cpython-3803ad47bb443d9cad83fe968b1b82ad5bcb75f2.tar.gz cpython-3803ad47bb443d9cad83fe968b1b82ad5bcb75f2.tar.bz2 |
issue26893: use mro() to examine class heirarchy
Diffstat (limited to 'Lib/enum.py')
-rw-r--r-- | Lib/enum.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/enum.py b/Lib/enum.py index 246df17..b8787d1 100644 --- a/Lib/enum.py +++ b/Lib/enum.py @@ -118,7 +118,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_ = {} |