# HG changeset patch # User Martin Geisler # Date 1336377770 -7200 # Node ID 7f76c97361e002ff500998ff051fd2c94b469685 # Parent fe9a53726484c673a7eaa4e89949479a35c10233 check-code: catch unnecessary s.strip().split() calls diff -r fe9a53726484 -r 7f76c97361e0 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 [