[Python-checkins] cpython: Issue22506: remove name & value from __dir__ as they now show up automatically
ethan.furman
python-checkins at python.org
Tue Oct 21 22:41:01 CEST 2014
https://hg.python.org/cpython/rev/9038b63dad52
changeset: 93152:9038b63dad52
user: Ethan Furman <ethan at stoneleaf.us>
date: Tue Oct 21 13:40:35 2014 -0700
summary:
Issue22506: remove name & value from __dir__ as they now show up automatically
files:
Lib/enum.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/Lib/enum.py b/Lib/enum.py
--- a/Lib/enum.py
+++ b/Lib/enum.py
@@ -470,8 +470,7 @@
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
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list