summaryrefslogtreecommitdiffstats
path: root/Lib/re.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/re.py')
-rw-r--r--Lib/re.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/re.py b/Lib/re.py
index ea41217..5e40c7b 100644
--- a/Lib/re.py
+++ b/Lib/re.py
@@ -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