Merged revisions 66894 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r66894 | benjamin.peterson | 2008-10-14 17:37:18 -0500 (Tue, 14 Oct 2008) | 1 line
remove set compat cruft
........
diff --git a/Lib/sre_compile.py b/Lib/sre_compile.py
index 3d74c3a..47e1701 100644
--- a/Lib/sre_compile.py
+++ b/Lib/sre_compile.py
@@ -24,12 +24,6 @@
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])
diff --git a/Lib/sre_parse.py b/Lib/sre_parse.py
index 9d6e631..bc71b58 100644
--- a/Lib/sre_parse.py
+++ b/Lib/sre_parse.py
@@ -16,12 +16,6 @@
from sre_constants import *
-def set(seq):
- s = {}
- for elem in seq:
- s[elem] = 1
- return s
-
SPECIAL_CHARS = ".\\[{()*+?^$|"
REPEAT_CHARS = "*+?{"