check-code: handle range/xrange divergence
authortimeless <timeless@mozdev.org>
Wed, 11 May 2016 01:39:07 +0000
changeset 29143 8ed693ec5398
parent 29142 c07be448028b
child 29144 f8b87a779c87
check-code: handle range/xrange divergence
contrib/check-code.py
--- a/contrib/check-code.py	Wed May 11 01:56:08 2016 +0000
+++ b/contrib/check-code.py	Wed May 11 01:39:07 2016 +0000
@@ -27,6 +27,10 @@
 import re
 import sys
 try:
+    xrange
+except NameError:
+    xrange = range
+try:
     import re2
 except ImportError:
     re2 = None