]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
remove set compat cruft
authorBenjamin Peterson <benjamin@python.org>
Tue, 14 Oct 2008 22:37:18 +0000 (22:37 +0000)
committerBenjamin Peterson <benjamin@python.org>
Tue, 14 Oct 2008 22:37:18 +0000 (22:37 +0000)
Lib/sre_compile.py
Lib/sre_parse.py

index 65d2ccf016f0c73af02a6c8e2bf7597b65e9e9fb..2a0c745a5d3c009f4f2a4fcc794c4dddef937468 100644 (file)
@@ -24,12 +24,6 @@ else:
 def _identityfunction(x):
     return x
 
-def set(seq):
-    s = {}
-    for elem in seq:
-        s[elem] = 1
-    return s
-
 _LITERAL_CODES = set([LITERAL, NOT_LITERAL])
 _REPEATING_CODES = set([REPEAT, MIN_REPEAT, MAX_REPEAT])
 _SUCCESS_CODES = set([SUCCESS, FAILURE])
index 47810193d16d34d852a6af5e37edbb7393a507f6..182d1eb44f8b9911fc652eebae8e6d52a1ee6854 100644 (file)
@@ -16,12 +16,6 @@ import sys
 
 from sre_constants import *
 
-def set(seq):
-    s = {}
-    for elem in seq:
-        s[elem] = 1
-    return s
-
 SPECIAL_CHARS = ".\\[{()*+?^$|"
 REPEAT_CHARS = "*+?{"