aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy.py
diff options
context:
space:
mode:
authorMathieu Rheaume <mathieu@codingrhemes.com>2015-09-20 19:59:39 -0400
committerMathieu Rheaume <mathieu@codingrhemes.com>2015-09-21 22:25:32 -0400
commit705d8f7a1c3dccaa4205a8c1aa353433320823bc (patch)
tree95e8d0fe49b9d47dc3591326be7ed3492c427eff /python/tidy.py
parent566f1eb6f6886ab87c2c1813ec13a34074cced8e (diff)
downloadservo-705d8f7a1c3dccaa4205a8c1aa353433320823bc.tar.gz
servo-705d8f7a1c3dccaa4205a8c1aa353433320823bc.zip
Raise max length error over 120 chars not at 120 chars. python/tidy.py
Diffstat (limited to 'python/tidy.py')
-rw-r--r--python/tidy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/tidy.py b/python/tidy.py
index 87e1cf142a7..eed16f41f15 100644
--- a/python/tidy.py
+++ b/python/tidy.py
@@ -76,7 +76,7 @@ def check_length(file_name, idx, line):
if file_name.endswith(".lock"):
raise StopIteration
max_length = 120
- if len(line) >= max_length:
+ if len(line.rstrip('\n')) > max_length:
yield (idx + 1, "Line is longer than %d characters" % max_length)