# HG changeset patch # User Renato Cunha # Date 1279160100 10800 # Node ID d5d4e6a306131c54bc9a6527caf117fedf7d0309 # Parent 34cc8b84407ffa318edbd49f392469a264246e8c check-code: check for tuple parameter unpacking (missing in py3k) diff -r 34cc8b84407f -r d5d4e6a30613 contrib/check-code.py --- a/contrib/check-code.py Wed Jul 14 23:03:21 2010 -0300 +++ b/contrib/check-code.py Wed Jul 14 23:15:00 2010 -0300 @@ -70,6 +70,10 @@ ] pypats = [ + (r'^\s*def\s*\w+\s*\(.*,\s*\(', + "tuple parameter unpacking not available in Python 3+"), + (r'lambda\s*\(.*,.*\)', + "tuple parameter unpacking not available in Python 3+"), (r'^\s*\t', "don't use tabs"), (r'\S;\s*\n', "semicolon"), (r'\w,\w', "missing whitespace after ,"),