Commit 7d1ce9df authored by Ethan Furman's avatar Ethan Furman

issue28082: better name for Flag

parent cfb2e090
......@@ -138,7 +138,7 @@ __all__ = [
__version__ = "2.2.1"
class Flag(enum.IntFlag):
class RegexFlag(enum.IntFlag):
ASCII = sre_compile.SRE_FLAG_ASCII # assume ascii "locale"
IGNORECASE = sre_compile.SRE_FLAG_IGNORECASE # ignore case
LOCALE = sre_compile.SRE_FLAG_LOCALE # assume current 8-bit locale
......@@ -157,7 +157,7 @@ class Flag(enum.IntFlag):
TEMPLATE = sre_compile.SRE_FLAG_TEMPLATE # disable backtracking
T = TEMPLATE
DEBUG = sre_compile.SRE_FLAG_DEBUG # dump pattern after compilation
globals().update(Flag.__members__)
globals().update(RegexFlag.__members__)
# sre exception
error = sre_compile.error
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment