mirror of https://github.com/python/cpython
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 ........
This commit is contained in:
parent
f63921f9d0
commit
6c940d6159
|
@ -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])
|
||||
|
|
|
@ -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 = "*+?{"
|
||||
|
||||
|
|
Loading…
Reference in New Issue