mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-140609: delete unused _stdlib_enums in enum.py (#140618)
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
parent
06c779474c
commit
9d34623eb1
1 changed files with 1 additions and 3 deletions
|
|
@ -17,7 +17,7 @@
|
||||||
# Dummy value for Enum and Flag as there are explicit checks for them
|
# Dummy value for Enum and Flag as there are explicit checks for them
|
||||||
# before they have been created.
|
# before they have been created.
|
||||||
# This is also why there are checks in EnumType like `if Enum is not None`
|
# This is also why there are checks in EnumType like `if Enum is not None`
|
||||||
Enum = Flag = EJECT = _stdlib_enums = ReprEnum = None
|
Enum = Flag = EJECT = ReprEnum = None
|
||||||
|
|
||||||
class nonmember(object):
|
class nonmember(object):
|
||||||
"""
|
"""
|
||||||
|
|
@ -2189,5 +2189,3 @@ def _old_convert_(etype, name, module, filter, source=None, *, boundary=None):
|
||||||
members.sort(key=lambda t: t[0])
|
members.sort(key=lambda t: t[0])
|
||||||
cls = etype(name, members, module=module, boundary=boundary or KEEP)
|
cls = etype(name, members, module=module, boundary=boundary or KEEP)
|
||||||
return cls
|
return cls
|
||||||
|
|
||||||
_stdlib_enums = IntEnum, StrEnum, IntFlag
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue