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:
Benjamin Peterson 2008-10-14 23:07:40 +00:00
parent f63921f9d0
commit 6c940d6159
2 changed files with 0 additions and 12 deletions

View File

@ -24,12 +24,6 @@ else:
def _identityfunction(x): def _identityfunction(x):
return x return x
def set(seq):
s = {}
for elem in seq:
s[elem] = 1
return s
_LITERAL_CODES = set([LITERAL, NOT_LITERAL]) _LITERAL_CODES = set([LITERAL, NOT_LITERAL])
_REPEATING_CODES = set([REPEAT, MIN_REPEAT, MAX_REPEAT]) _REPEATING_CODES = set([REPEAT, MIN_REPEAT, MAX_REPEAT])
_SUCCESS_CODES = set([SUCCESS, FAILURE]) _SUCCESS_CODES = set([SUCCESS, FAILURE])

View File

@ -16,12 +16,6 @@ import sys
from sre_constants import * from sre_constants import *
def set(seq):
s = {}
for elem in seq:
s[elem] = 1
return s
SPECIAL_CHARS = ".\\[{()*+?^$|" SPECIAL_CHARS = ".\\[{()*+?^$|"
REPEAT_CHARS = "*+?{" REPEAT_CHARS = "*+?{"