check-code: add /= to operator list
authorSune Foldager <cryo@cyanite.org>
Thu, 12 May 2011 18:19:28 +0200
changeset 14303 e2be0bba0d83
parent 14302 b0f97b2589cc
child 14304 64c22db0bc38
check-code: add /= to operator list
contrib/check-code.py
--- 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"),