Mercurial > public > mercurial-scm > hg
comparison contrib/check-code.py @ 26808:b81b8dbecc26
check-code: allow argument passing py2.6ism
this backs out 131f7fe06e9e, because Python2.5 support was dropped
author | timeless <timeless@mozdev.org> |
---|---|
date | Thu, 15 Oct 2015 17:28:26 -0400 |
parents | df1a29ec45bf |
children | 28b5c4fcf48d |
comparison
equal
deleted
inserted
replaced
26807:df31e126b706 | 26808:b81b8dbecc26 |
---|---|
197 (r"( *)(#([^\n]*\S)?)", repcomment), | 197 (r"( *)(#([^\n]*\S)?)", repcomment), |
198 ] | 198 ] |
199 | 199 |
200 pypats = [ | 200 pypats = [ |
201 [ | 201 [ |
202 (r'\([^)]*\*\w[^()]+\w+=', "can't pass varargs with keyword in Py2.5"), | |
203 (r'^\s*def\s*\w+\s*\(.*,\s*\(', | 202 (r'^\s*def\s*\w+\s*\(.*,\s*\(', |
204 "tuple parameter unpacking not available in Python 3+"), | 203 "tuple parameter unpacking not available in Python 3+"), |
205 (r'lambda\s*\(.*,.*\)', | 204 (r'lambda\s*\(.*,.*\)', |
206 "tuple parameter unpacking not available in Python 3+"), | 205 "tuple parameter unpacking not available in Python 3+"), |
207 (r'import (.+,[^.]+\.[^.]+|[^.]+\.[^.]+,)', | 206 (r'import (.+,[^.]+\.[^.]+|[^.]+\.[^.]+,)', |