From e5bbe82b72ba13cee629c2f2d24d83c6c7704ed7 Mon Sep 17 00:00:00 2001 From: coolreader18 <33094578+coolreader18@users.noreply.github.com> Date: Fri, 20 Sep 2019 00:21:01 -0500 Subject: [PATCH] Fix enum.py for RustPython --- Lib/enum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/enum.py b/Lib/enum.py index 3f5ecbb5c..2e868bff1 100644 --- a/Lib/enum.py +++ b/Lib/enum.py @@ -157,7 +157,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 enum_class.mro() for a in b.__dict__} + base_attributes = {a for b in enum_class.mro() for a in dir(b)} # XXX modified for rustpython # Reverse value->name map for hashable values. enum_class._value2member_map_ = {}