diff options
author | Ethan Furman <ethan@stoneleaf.us> | 2014-10-21 13:40:35 -0700 |
---|---|---|
committer | Ethan Furman <ethan@stoneleaf.us> | 2014-10-21 13:40:35 -0700 |
commit | 01adbbf107fddc3be0f3fc8f56a5b952c5bf7f2c (patch) | |
tree | 282dde3bd5c2f947d536df1fc20618d5bbbeb8bc /Lib/enum.py | |
parent | 6d074197bca8d762b0eff3be255d42b25f1f22b1 (diff) | |
download | cpython-01adbbf107fddc3be0f3fc8f56a5b952c5bf7f2c.tar.gz |
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 bbf8632bbc..d744f8f4d5 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 |