mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
Revert "bpo-38659: [Enum] add _simple_enum decorator (GH-25285)" (GH-25476)
This reverts commit dbac8f40e8
.
This commit is contained in:
parent
dbac8f40e8
commit
503cdc7c12
20 changed files with 34 additions and 871 deletions
|
@ -143,8 +143,7 @@ __all__ = [
|
|||
__version__ = "2.2.1"
|
||||
|
||||
@enum.global_enum
|
||||
@enum._simple_enum(enum.IntFlag, boundary=enum.KEEP)
|
||||
class RegexFlag:
|
||||
class RegexFlag(enum.IntFlag, boundary=enum.KEEP):
|
||||
ASCII = A = sre_compile.SRE_FLAG_ASCII # assume ascii "locale"
|
||||
IGNORECASE = I = sre_compile.SRE_FLAG_IGNORECASE # ignore case
|
||||
LOCALE = L = sre_compile.SRE_FLAG_LOCALE # assume current 8-bit locale
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue