[Python-checkins] r66894 - in python/trunk/Lib: sre_compile.py sre_parse.py
benjamin.peterson
python-checkins at python.org
Wed Oct 15 00:37:19 CEST 2008
Author: benjamin.peterson
Date: Wed Oct 15 00:37:18 2008
New Revision: 66894
Log:
remove set compat cruft
Modified:
python/trunk/Lib/sre_compile.py
python/trunk/Lib/sre_parse.py
Modified: python/trunk/Lib/sre_compile.py
==============================================================================
--- python/trunk/Lib/sre_compile.py (original)
+++ python/trunk/Lib/sre_compile.py Wed Oct 15 00:37:18 2008
@@ -24,12 +24,6 @@
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])
Modified: python/trunk/Lib/sre_parse.py
==============================================================================
--- python/trunk/Lib/sre_parse.py (original)
+++ python/trunk/Lib/sre_parse.py Wed Oct 15 00:37:18 2008
@@ -16,12 +16,6 @@
from sre_constants import *
-def set(seq):
- s = {}
- for elem in seq:
- s[elem] = 1
- return s
-
SPECIAL_CHARS = ".\\[{()*+?^$|"
REPEAT_CHARS = "*+?{"
More information about the Python-checkins
mailing list