Submitter | Yuya Nishihara |
---|---|
Date | May 3, 2017, 1:50 a.m. |
Message ID | <92e0bf3b4a6615fb8f11.1493776221@mimosa> |
Download | mbox | patch |
Permalink | /patch/20385/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/contrib/check-code.py b/contrib/check-code.py --- a/contrib/check-code.py +++ b/contrib/check-code.py @@ -492,7 +492,7 @@ py3pats = [ checks = [ ('python', r'.*\.(py|cgi)$', r'^#!.*python', pyfilters, pypats), ('python', r'.*hgext.*\.py$', '', [], pyextnfpats), - ('python 3', r'.*(hgext|mercurial).*(?<!pycompat)\.py', '', + ('python 3', r'.*(hgext|mercurial)/(?!pycompat).*\.py', '', pyfilters, py3pats), ('test script', r'(.*/)?test-[^.~]*$', '', testfilters, testpats), ('c', r'.*\.[ch]$', '', cfilters, cpats),