comparison contrib/check-code.py @ 32184:cf424dae5dc7

check-code: ignore re-exports of os.environ in encoding.py These are valid uses of os.environ.
author Yuya Nishihara <yuya@tcha.org>
date Mon, 01 May 2017 17:23:48 +0900
parents 41d79475d440
children ca727147ff9f
comparison
equal deleted inserted replaced
32183:41d79475d440 32184:cf424dae5dc7
472 [], 472 [],
473 ] 473 ]
474 474
475 py3pats = [ 475 py3pats = [
476 [ 476 [
477 (r'os\.environ', "use encoding.environ instead (py3)"), 477 (r'os\.environ', "use encoding.environ instead (py3)", r'#.*re-exports'),
478 (r'os\.name', "use pycompat.osname instead (py3)"), 478 (r'os\.name', "use pycompat.osname instead (py3)"),
479 (r'os\.getcwd', "use pycompat.getcwd instead (py3)"), 479 (r'os\.getcwd', "use pycompat.getcwd instead (py3)"),
480 (r'os\.sep', "use pycompat.ossep instead (py3)"), 480 (r'os\.sep', "use pycompat.ossep instead (py3)"),
481 (r'os\.pathsep', "use pycompat.ospathsep instead (py3)"), 481 (r'os\.pathsep', "use pycompat.ospathsep instead (py3)"),
482 (r'os\.altsep', "use pycompat.osaltsep instead (py3)"), 482 (r'os\.altsep', "use pycompat.osaltsep instead (py3)"),