check-code: catch unnecessary s.strip().split() calls
authorMartin Geisler <mg@aragost.com>
Mon, 07 May 2012 10:02:50 +0200
changeset 16590 7f76c97361e0
parent 16589 fe9a53726484
child 16592 4878914b02ab
check-code: catch unnecessary s.strip().split() calls
contrib/check-code.py
--- 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
   [