From 5c877e4012558fc6cec5c412cf642978c037e2a0 Mon Sep 17 00:00:00 2001 From: lethosor Date: Tue, 24 Mar 2015 16:08:33 -0400 Subject: [PATCH] Clarify trailing whitespace logic --- travis/lint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/travis/lint.py b/travis/lint.py index 23c30449e6..d80d080800 100644 --- a/travis/lint.py +++ b/travis/lint.py @@ -74,7 +74,7 @@ class TrailingWhitespaceLinter(Linter): msg = 'Contains trailing whitespace' def check_line(self, line): line = line.replace('\r', '') - return not line.strip() or not line.endswith(' ') and not line.endswith('\t') + return not line.strip() or (not line.endswith(' ') and not line.endswith('\t')) def fix_line(self, line): return line.rstrip('\t ')