From ec5f8eb85f206013a675178d10410940e24a4b0e Mon Sep 17 00:00:00 2001 From: Ethan Furman Date: Tue, 21 Oct 2014 13:40:35 -0700 Subject: Issue22506: remove name & value from __dir__ as they now show up automatically --- Lib/enum.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/enum.py b/Lib/enum.py index bbf8632..d744f8f 100644 --- a/Lib/enum.py +++ b/Lib/enum.py @@ -470,8 +470,7 @@ class Enum(metaclass=EnumMeta): for m in cls.__dict__ if m[0] != '_' ] - return (['__class__', '__doc__', '__module__', 'name', 'value'] + - added_behavior) + return (['__class__', '__doc__', '__module__'] + added_behavior) def __format__(self, format_spec): # mixed-in Enums should use the mixed-in type's __format__, otherwise -- cgit v0.12