# HG changeset patch # User Gregory Szorc # Date 1533154080 25200 # Node ID 882ef6949bdc303f2dba206c8ab2743daf98439b # Parent e7aa113b14f77959ad4039d873b57100a4d56b31 check-code: ban use of bare xrange() We want everyone to use pycompat.xrange(). Differential Revision: https://phab.mercurial-scm.org/D4033 diff -r e7aa113b14f7 -r 882ef6949bdc contrib/check-code.py --- a/contrib/check-code.py Wed Aug 01 13:00:45 2018 -0700 +++ b/contrib/check-code.py Wed Aug 01 13:08:00 2018 -0700 @@ -511,6 +511,7 @@ (r'getopt\.getopt', "use pycompat.getoptb instead (py3)"), (r'os\.getenv', "use encoding.environ.get instead"), (r'os\.setenv', "modifying the environ dict is not preferred"), + (r'(?