Mercurial > hg-stable
changeset 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 | fe9a53726484 |
children | 4878914b02ab |
files | contrib/check-code.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
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 [