--- 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