summaryrefslogtreecommitdiff
path: root/Lib/re.py
diff options
context:
space:
mode:
authorEthan Furman <ethan@stoneleaf.us>2016-09-11 14:54:27 -0700
committerEthan Furman <ethan@stoneleaf.us>2016-09-11 14:54:27 -0700
commit813f60a476f032bd16a11cfb2cfa422ef313fa3a (patch)
treef864d04dc93d37e4f55ecd107a5639fda221e335 /Lib/re.py
parente74d571e49d3fdb4389b79fa1392dd75e2acb916 (diff)
downloadcpython-813f60a476f032bd16a11cfb2cfa422ef313fa3a.tar.gz
issue28082: better name for Flag
Diffstat (limited to 'Lib/re.py')
-rw-r--r--Lib/re.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/re.py b/Lib/re.py
index ad59640633..0850f0db8d 100644
--- a/Lib/re.py
+++ b/Lib/re.py
@@ -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