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
........
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])
from sre_constants import *
-def set(seq):
- s = {}
- for elem in seq:
- s[elem] = 1
- return s
-
SPECIAL_CHARS = ".\\[{()*+?^$|"
REPEAT_CHARS = "*+?{"