]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
issue28082: better name for Flag
authorEthan Furman <ethan@stoneleaf.us>
Sun, 11 Sep 2016 21:54:27 +0000 (14:54 -0700)
committerEthan Furman <ethan@stoneleaf.us>
Sun, 11 Sep 2016 21:54:27 +0000 (14:54 -0700)
Lib/re.py

index ad5964063321bc138693a786c8e0ede5fb21b143..0850f0db8d81af7359f56ef1fd4c7512738b0fde 100644 (file)
--- 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