summaryrefslogtreecommitdiff
path: root/Lib/sre_compile.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-03-26 20:16:39 +0000
committerRaymond Hettinger <python@rcn.com>2004-03-26 20:16:39 +0000
commit29e383754e4a96b46d1bd9f72a49694cdb993850 (patch)
tree3188d3ef11768fa307e5649f4f0494052f63f8bd /Lib/sre_compile.py
parent8123ff6bca372826c64be011916f4695b9e581fa (diff)
downloadcpython-git-29e383754e4a96b46d1bd9f72a49694cdb993850.tar.gz
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 5d42b2b096..b5815548a5 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