summaryrefslogtreecommitdiff
path: root/Lib/sre_compile.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-10-14 23:07:40 +0000
committerBenjamin Peterson <benjamin@python.org>2008-10-14 23:07:40 +0000
commit6c940d6159d6f0a21f664b58b3aa0098041203e1 (patch)
tree7e3f481f85c51f4f20b69174092862b09dc640cd /Lib/sre_compile.py
parentf63921f9d00bb5dd4a2ec0f95e8f395fc0aa58f4 (diff)
downloadcpython-git-6c940d6159d6f0a21f664b58b3aa0098041203e1.tar.gz
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 ........
Diffstat (limited to 'Lib/sre_compile.py')
-rw-r--r--Lib/sre_compile.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/Lib/sre_compile.py b/Lib/sre_compile.py
index 3d74c3a0a9..47e1701d2f 100644
--- a/Lib/sre_compile.py
+++ b/Lib/sre_compile.py
@@ -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])