diff options
author | Ethan Furman <ethan@stoneleaf.us> | 2014-10-21 20:40:35 (GMT) |
---|---|---|
committer | Ethan Furman <ethan@stoneleaf.us> | 2014-10-21 20:40:35 (GMT) |
commit | ec5f8eb85f206013a675178d10410940e24a4b0e (patch) | |
tree | ac952e6d5c30c7fa21ebcee08b51b3b25356f2a1 /Lib/enum.py | |
parent | b9d0199c073fc963b27106f4b7752dcbe39bfed3 (diff) | |
download | cpython-ec5f8eb85f206013a675178d10410940e24a4b0e.zip cpython-ec5f8eb85f206013a675178d10410940e24a4b0e.tar.gz cpython-ec5f8eb85f206013a675178d10410940e24a4b0e.tar.bz2 |
Issue22506: remove name & value from __dir__ as they now show up automatically
Diffstat (limited to 'Lib/enum.py')
-rw-r--r-- | Lib/enum.py | 3 |
1 files changed, 1 insertions, 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 |