summaryrefslogtreecommitdiffstats
path: root/Lib/sre_compile.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-11-10 08:21:03 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-11-10 08:21:03 (GMT)
commit5f3367721917e417432aca6965575546e396edb2 (patch)
tree427b96e98e38596be3285348c5b8782302d2b785 /Lib/sre_compile.py
parentc7f7d3897e6b0eb8bbfa7957e0a19232d05b8616 (diff)
parent39e4c4d873927b902c53aeb0e2e15c12d2678e1b (diff)
downloadcpython-5f3367721917e417432aca6965575546e396edb2.zip
cpython-5f3367721917e417432aca6965575546e396edb2.tar.gz
cpython-5f3367721917e417432aca6965575546e396edb2.tar.bz2
Merge heads
Diffstat (limited to 'Lib/sre_compile.py')
-rw-r--r--Lib/sre_compile.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/sre_compile.py b/Lib/sre_compile.py
index da422a9..7d8f775 100644
--- a/Lib/sre_compile.py
+++ b/Lib/sre_compile.py
@@ -21,10 +21,10 @@ if _sre.CODESIZE == 2:
else:
MAXCODE = 0xFFFFFFFF
-_LITERAL_CODES = set([LITERAL, NOT_LITERAL])
-_REPEATING_CODES = set([REPEAT, MIN_REPEAT, MAX_REPEAT])
-_SUCCESS_CODES = set([SUCCESS, FAILURE])
-_ASSERT_CODES = set([ASSERT, ASSERT_NOT])
+_LITERAL_CODES = {LITERAL, NOT_LITERAL}
+_REPEATING_CODES = {REPEAT, MIN_REPEAT, MAX_REPEAT}
+_SUCCESS_CODES = {SUCCESS, FAILURE}
+_ASSERT_CODES = {ASSERT, ASSERT_NOT}
def _compile(code, pattern, flags):
# internal: compile a (sub)pattern