Discussion:
[Python-3000-checkins] r66895 - in python/branches/py3k: Lib/sre_compile.py Lib/sre_parse.py
benjamin.peterson
2008-10-14 23:07:40 UTC
Permalink
Author: benjamin.peterson
Date: Wed Oct 15 01:07:40 2008
New Revision: 66895

Log:
Merged revisions 66894 via svnmerge from
svn+ssh://pythondev at 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
........


Modified:
python/branches/py3k/ (props changed)
python/branches/py3k/Lib/sre_compile.py
python/branches/py3k/Lib/sre_parse.py

Modified: python/branches/py3k/Lib/sre_compile.py
==============================================================================
--- python/branches/py3k/Lib/sre_compile.py (original)
+++ python/branches/py3k/Lib/sre_compile.py Wed Oct 15 01:07:40 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/branches/py3k/Lib/sre_parse.py
==============================================================================
--- python/branches/py3k/Lib/sre_parse.py (original)
+++ python/branches/py3k/Lib/sre_parse.py Wed Oct 15 01:07:40 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 = "*+?{"

Loading...