contrib/check-code.py
branchstable
changeset 17299 e51d4aedace9
parent 17167 5f131ae05905
child 17345 4f8054d3171b
--- a/contrib/check-code.py	Sat Jul 28 13:33:06 2012 +0200
+++ b/contrib/check-code.py	Tue Jul 31 03:30:42 2012 +0200
@@ -206,6 +206,7 @@
     (r'\.debug\(\_', "don't mark debug messages for translation"),
     (r'\.strip\(\)\.split\(\)', "no need to strip before splitting"),
     (r'^\s*except\s*:', "warning: naked except clause", r'#.*re-raises'),
+    (r':\n(    )*( ){1,3}[^ ]', "must indent 4 spaces"),
   ],
   # warnings
   [