]> granicus.if.org Git - python/commitdiff
Issue22506: remove name & value from __dir__ as they now show up automatically
authorEthan Furman <ethan@stoneleaf.us>
Tue, 21 Oct 2014 20:40:35 +0000 (13:40 -0700)
committerEthan Furman <ethan@stoneleaf.us>
Tue, 21 Oct 2014 20:40:35 +0000 (13:40 -0700)
Lib/enum.py

index bbf8632bbc222ea7dda67f007b6e402a6cf7ef58..d744f8f4d5da352328bab04fa63bfef54d0401e6 100644 (file)
@@ -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