Skip to content

Commit 9d34623

Browse files
authored
gh-140609: delete unused _stdlib_enums in enum.py (#140618)
Signed-off-by: yihong0618 <[email protected]>
1 parent 06c7794 commit 9d34623

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Lib/enum.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# Dummy value for Enum and Flag as there are explicit checks for them
1818
# before they have been created.
1919
# This is also why there are checks in EnumType like `if Enum is not None`
20-
Enum = Flag = EJECT = _stdlib_enums = ReprEnum = None
20+
Enum = Flag = EJECT = ReprEnum = None
2121

2222
class nonmember(object):
2323
"""
@@ -2189,5 +2189,3 @@ def _old_convert_(etype, name, module, filter, source=None, *, boundary=None):
21892189
members.sort(key=lambda t: t[0])
21902190
cls = etype(name, members, module=module, boundary=boundary or KEEP)
21912191
return cls
2192-
2193-
_stdlib_enums = IntEnum, StrEnum, IntFlag

0 commit comments

Comments
 (0)