contrib/check-code.py
changeset 11568 d5d4e6a30613
parent 11522 eaa7666ad53f
child 11569 f8576644a222
--- 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 ,"),