diff options
author | Ian Cordasco <graffatcolmingov@gmail.com> | 2012-12-01 10:04:11 -0500 |
---|---|---|
committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2012-12-01 10:04:11 -0500 |
commit | 855af3e1957c2a5a09df9de48013c96cdba10088 (patch) | |
tree | d1f2544c6eadfc91d1afd34b968e65152e3433ff | |
parent | 8b2ea84300c5b99017b1cfb42553928468343f76 (diff) | |
download | pep8-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-x | pep8.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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: |