]> granicus.if.org Git - python/commitdiff
Merged revisions 66894 via svnmerge from
authorBenjamin Peterson <benjamin@python.org>
Tue, 14 Oct 2008 23:07:40 +0000 (23:07 +0000)
committerBenjamin Peterson <benjamin@python.org>
Tue, 14 Oct 2008 23:07:40 +0000 (23:07 +0000)
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
........

Lib/sre_compile.py
Lib/sre_parse.py

index 3d74c3a0a92a1151cc4f519daccab9473123f9b1..47e1701d2f0ed8d9cd34f8763182fbf5f3e6e592 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 9d6e631ef1f9f8cc7baace3aa203d77f9266e1bc..bc71b587751c5527f2da1aaccd0cb71be50e7416 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 = "*+?{"