changeset 14303:e2be0bba0d83

check-code: add /= to operator list
author Sune Foldager <cryo@cyanite.org>
date Thu, 12 May 2011 18:19:28 +0200
parents b0f97b2589cc
children 64c22db0bc38
files contrib/check-code.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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"),