summaryrefslogtreecommitdiffstats
path: root/Lib/sre_compile.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-03-26 20:16:39 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-03-26 20:16:39 (GMT)
commit29e383754e4a96b46d1bd9f72a49694cdb993850 (patch)
tree3188d3ef11768fa307e5649f4f0494052f63f8bd /Lib/sre_compile.py
parent8123ff6bca372826c64be011916f4695b9e581fa (diff)
downloadcpython-29e383754e4a96b46d1bd9f72a49694cdb993850.zip
cpython-29e383754e4a96b46d1bd9f72a49694cdb993850.tar.gz
cpython-29e383754e4a96b46d1bd9f72a49694cdb993850.tar.bz2
Remove unnecessary test. (Thanks Skip)
Diffstat (limited to 'Lib/sre_compile.py')
-rw-r--r--Lib/sre_compile.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/Lib/sre_compile.py b/Lib/sre_compile.py
index 5d42b2b..b581554 100644
--- a/Lib/sre_compile.py
+++ b/Lib/sre_compile.py
@@ -24,12 +24,6 @@ else:
def _identityfunction(x):
return x
-# use xrange if available
-try:
- xrange
-except NameError:
- xrange = range
-
def _compile(code, pattern, flags):
# internal: compile a (sub)pattern
emit = code.append