commit | ec5f8eb85f206013a675178d10410940e24a4b0e | [log] [tgz] |
---|---|---|
author | Ethan Furman <ethan@stoneleaf.us> | Tue Oct 21 13:40:35 2014 -0700 |
committer | Ethan Furman <ethan@stoneleaf.us> | Tue Oct 21 13:40:35 2014 -0700 |
tree | ac952e6d5c30c7fa21ebcee08b51b3b25356f2a1 | |
parent | b9d0199c073fc963b27106f4b7752dcbe39bfed3 [diff] [blame] |
Issue22506: remove name & value from __dir__ as they now show up automatically
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 @@ 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