diff options
author | 2020-09-21 15:11:06 +0200 | |
---|---|---|
committer | 2020-09-21 06:11:06 -0700 | |
commit | 68526fe258da8c01196fd7cf48e8e5f1280bf8fd (patch) | |
tree | 45b3930335dca97d5b613100e12b0feaa7e218ed /Lib/enum.py | |
parent | bpo-1635741: Convert an _lsprof method to argument clinic (GH-22240) (diff) | |
download | cpython-68526fe258da8c01196fd7cf48e8e5f1280bf8fd.tar.gz cpython-68526fe258da8c01196fd7cf48e8e5f1280bf8fd.tar.bz2 cpython-68526fe258da8c01196fd7cf48e8e5f1280bf8fd.zip |
bpo-40084: Enum - dir() includes member attributes (GH-19219)
Diffstat (limited to 'Lib/enum.py')
-rw-r--r-- | Lib/enum.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/enum.py b/Lib/enum.py index 3c459ea4113..e8603a43420 100644 --- a/Lib/enum.py +++ b/Lib/enum.py @@ -644,7 +644,7 @@ class Enum(metaclass=EnumMeta): for cls in self.__class__.mro() for m in cls.__dict__ if m[0] != '_' and m not in self._member_map_ - ] + ] + [m for m in self.__dict__ if m[0] != '_'] return (['__class__', '__doc__', '__module__'] + added_behavior) def __format__(self, format_spec): |