diff contrib/check-code.py @ 14303:e2be0bba0d83

check-code: add /= to operator list
author Sune Foldager <cryo@cyanite.org>
date Thu, 12 May 2011 18:19:28 +0200
parents 6332c02b3d68
children 1ffeeb91c55d
line wrap: on
line diff
--- a/contrib/check-code.py	Thu May 12 16:21:01 2011 +0200
+++ b/contrib/check-code.py	Thu May 12 18:19:28 2011 +0200
@@ -157,7 +157,7 @@
      "missing whitespace around operator"),
     (r'\s(\+=|-=|!=|<>|<=|>=|<<=|>>=)\S',
      "missing whitespace around operator"),
-    (r'[^+=*!<>&| -](\s=|=\s)[^= ]',
+    (r'[^+=*/!<>&| -](\s=|=\s)[^= ]',
      "wrong whitespace around ="),
     (r'raise Exception', "don't raise generic exceptions"),
     (r' is\s+(not\s+)?["\'0-9-]', "object comparison with literal"),