summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2012-06-26 08:55:48 -0700
committerFlorent Xicluna <florent.xicluna@gmail.com>2012-06-26 08:55:48 -0700
commitd01bb58ddc8c406a1daf00c47106e56b33043d59 (patch)
tree643145f483e2ebb396e37d001c097a545d07ba56
parentded046e0e006f216ead8905a270ee2a61eca407e (diff)
parentf1573ea1076401fb784d609fc9d39279dbe3a940 (diff)
downloadpep8-d01bb58ddc8c406a1daf00c47106e56b33043d59.tar.gz
Merge pull request #88 from dpursehouse/max-line-length
Show maximum length in "E501 line too long" error message
-rwxr-xr-xpep8.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pep8.py b/pep8.py
index 609131b..223fd87 100755
--- a/pep8.py
+++ b/pep8.py
@@ -272,7 +272,8 @@ def maximum_line_length(physical_line, max_line_length):
pass
if length > max_line_length:
return max_line_length, \
- "E501 line too long (%d characters)" % length
+ "E501 line too long (%d characters > max %d)" % \
+ (length, max_line_length)
##############################################################################