contrib/check-code.py
changeset 19872 681f7b9213a4
parent 19793 6fb1b7728719
child 19873 b3de50b0c7aa
--- a/contrib/check-code.py	Thu Oct 03 14:50:47 2013 +0200
+++ b/contrib/check-code.py	Thu Oct 03 14:50:47 2013 +0200
@@ -226,6 +226,8 @@
      "missing whitespace around operator"),
     (r'[^^+=*/!<>&| %-](\s=|=\s)[^= ]',
      "wrong whitespace around ="),
+    (r'\([^()]*( =[^=]|[^<>!=]= )',
+     "no whitespace around = for named parameters"),
     (r'raise Exception', "don't raise generic exceptions"),
     (r'raise [^,(]+, (\([^\)]+\)|[^,\(\)]+)$',
      "don't use old-style two-argument raise, use Exception(message)"),