]> granicus.if.org Git - python/commitdiff
Remove unnecessary test. (Thanks Skip)
authorRaymond Hettinger <python@rcn.com>
Fri, 26 Mar 2004 20:16:39 +0000 (20:16 +0000)
committerRaymond Hettinger <python@rcn.com>
Fri, 26 Mar 2004 20:16:39 +0000 (20:16 +0000)
Lib/sre_compile.py

index 5d42b2b096f90fcf714b5e9703f5adc9b3c1a691..b5815548a500e0795786a5b909f86191827bfd74 100644 (file)
@@ -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