diff contrib/check-code.py @ 17299:e51d4aedace9 stable

check-code: indent 4 spaces in py files
author Mads Kiilerich <mads@kiilerich.com>
date Tue, 31 Jul 2012 03:30:42 +0200
parents 5f131ae05905
children 4f8054d3171b
line wrap: on
line diff
--- 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
   [