changeset 29143:8ed693ec5398

check-code: handle range/xrange divergence
author timeless <timeless@mozdev.org>
date Wed, 11 May 2016 01:39:07 +0000
parents c07be448028b
children f8b87a779c87
files contrib/check-code.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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