summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2012-12-01 10:04:11 -0500
committerIan Cordasco <graffatcolmingov@gmail.com>2012-12-01 10:04:11 -0500
commit855af3e1957c2a5a09df9de48013c96cdba10088 (patch)
treed1f2544c6eadfc91d1afd34b968e65152e3433ff
parent8b2ea84300c5b99017b1cfb42553928468343f76 (diff)
downloadpep8-855af3e1957c2a5a09df9de48013c96cdba10088.tar.gz
Some people reported E501 continued to appear
Even though I couldn't reproduce it in a clean virtualenv, I have added this to be entirely certain that their issues do not persist.
-rwxr-xr-xpep8.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pep8.py b/pep8.py
index b1903c8..00b51bd 100755
--- a/pep8.py
+++ b/pep8.py
@@ -264,6 +264,8 @@ def maximum_line_length(physical_line, max_line_length):
line = physical_line.rstrip()
length = len(line)
if length > max_line_length:
+ if line.strip().lower().endswith('# nopep8'):
+ return
if hasattr(line, 'decode'): # Python 2
# The line could contain multi-byte characters
try: