diff contrib/check-code.py @ 16590:7f76c97361e0

check-code: catch unnecessary s.strip().split() calls
author Martin Geisler <mg@aragost.com>
date Mon, 07 May 2012 10:02:50 +0200
parents c326fe884daa
children d046eb97d21e
line wrap: on
line diff
--- a/contrib/check-code.py	Fri May 04 15:29:07 2012 +0200
+++ b/contrib/check-code.py	Mon May 07 10:02:50 2012 +0200
@@ -199,6 +199,7 @@
      "always assign an opened file to a variable, and close it afterwards"),
     (r'(?i)descendent', "the proper spelling is descendAnt"),
     (r'\.debug\(\_', "don't mark debug messages for translation"),
+    (r'\.strip\(\)\.split\(\)', "no need to strip before splitting"),
   ],
   # warnings
   [