Mercurial > public > mercurial-scm > hg-stable
diff contrib/check-code.py @ 32230:41d79475d440
check-code: exclude demandimport.py and policy.py from Python 3 checks
These modules can't depend on pycompat.py, which means we have to write Py3
hacks in them.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 26 Apr 2017 21:51:19 +0900 |
parents | ac641a41f98d |
children | cf424dae5dc7 |
line wrap: on
line diff
--- a/contrib/check-code.py Mon May 01 17:10:22 2017 +0900 +++ b/contrib/check-code.py Wed Apr 26 21:51:19 2017 +0900 @@ -492,8 +492,8 @@ checks = [ ('python', r'.*\.(py|cgi)$', r'^#!.*python', pyfilters, pypats), ('python', r'.*hgext.*\.py$', '', [], pyextnfpats), - ('python 3', r'.*(hgext|mercurial)/(?!pycompat).*\.py', '', - pyfilters, py3pats), + ('python 3', r'.*(hgext|mercurial)/(?!demandimport|policy|pycompat).*\.py', + '', pyfilters, py3pats), ('test script', r'(.*/)?test-[^.~]*$', '', testfilters, testpats), ('c', r'.*\.[ch]$', '', cfilters, cpats), ('unified test', r'.*\.t$', '', utestfilters, utestpats),