Mercurial > public > mercurial-scm > hg-stable
comparison contrib/check-code.py @ 20796:131f7fe06e9e
check-code: check for argument passing py2.6ism
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 19 Mar 2014 18:04:03 -0500 |
parents | a61ed1c2d7a7 |
children | 6500a2eebee8 |
comparison
equal
deleted
inserted
replaced
20795:29b159bd71bc | 20796:131f7fe06e9e |
---|---|
189 (r"( *)(#([^\n]*\S)?)", repcomment), | 189 (r"( *)(#([^\n]*\S)?)", repcomment), |
190 ] | 190 ] |
191 | 191 |
192 pypats = [ | 192 pypats = [ |
193 [ | 193 [ |
194 (r'\([^)]*\*\w[^()]+\w+=', "can't pass varargs with keyword in Py2.5"), | |
194 (r'^\s*def\s*\w+\s*\(.*,\s*\(', | 195 (r'^\s*def\s*\w+\s*\(.*,\s*\(', |
195 "tuple parameter unpacking not available in Python 3+"), | 196 "tuple parameter unpacking not available in Python 3+"), |
196 (r'lambda\s*\(.*,.*\)', | 197 (r'lambda\s*\(.*,.*\)', |
197 "tuple parameter unpacking not available in Python 3+"), | 198 "tuple parameter unpacking not available in Python 3+"), |
198 (r'import (.+,[^.]+\.[^.]+|[^.]+\.[^.]+,)', | 199 (r'import (.+,[^.]+\.[^.]+|[^.]+\.[^.]+,)', |