comparison contrib/check-code.py @ 38824:882ef6949bdc

check-code: ban use of bare xrange() We want everyone to use pycompat.xrange(). Differential Revision: https://phab.mercurial-scm.org/D4033
author Gregory Szorc <gregory.szorc@gmail.com>
date Wed, 01 Aug 2018 13:08:00 -0700
parents 8fb9985382be
children c52a8af4052a
comparison
equal deleted inserted replaced
38823:e7aa113b14f7 38824:882ef6949bdc
509 (r'os\.altsep', "use pycompat.osaltsep instead (py3)"), 509 (r'os\.altsep', "use pycompat.osaltsep instead (py3)"),
510 (r'sys\.platform', "use pycompat.sysplatform instead (py3)"), 510 (r'sys\.platform', "use pycompat.sysplatform instead (py3)"),
511 (r'getopt\.getopt', "use pycompat.getoptb instead (py3)"), 511 (r'getopt\.getopt', "use pycompat.getoptb instead (py3)"),
512 (r'os\.getenv', "use encoding.environ.get instead"), 512 (r'os\.getenv', "use encoding.environ.get instead"),
513 (r'os\.setenv', "modifying the environ dict is not preferred"), 513 (r'os\.setenv', "modifying the environ dict is not preferred"),
514 (r'(?<!pycompat\.)xrange', "use pycompat.xrange instead (py3)"),
514 ], 515 ],
515 # warnings 516 # warnings
516 [], 517 [],
517 ] 518 ]
518 519