[Python-checkins] cpython: issue28082: better name for Flag

ethan.furman python-checkins at python.org
Sun Sep 11 17:54:46 EDT 2016


https://hg.python.org/cpython/rev/7369ec91d0f7
changeset:   103660:7369ec91d0f7
user:        Ethan Furman <ethan at stoneleaf.us>
date:        Sun Sep 11 14:54:27 2016 -0700
summary:
  issue28082: better name for Flag

files:
  Lib/re.py |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Lib/re.py b/Lib/re.py
--- a/Lib/re.py
+++ b/Lib/re.py
@@ -138,7 +138,7 @@
 
 __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 @@
     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

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list