diff options
author | Ian Stapleton Cordasco <graffatcolmingov@gmail.com> | 2018-04-12 17:01:03 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-12 17:01:03 -0500 |
commit | d8f10a90e7ec93221d03b414b105f9514c469ad2 (patch) | |
tree | 9646b10c4cf2140a07d32916949406d92bb0dc6f /pycodestyle.py | |
parent | fac287120f1672b06bc63065feed5f20a34f95f2 (diff) | |
parent | 25221c95fd180fbc30fb17de2c1930386348ac51 (diff) | |
download | pep8-d8f10a90e7ec93221d03b414b105f9514c469ad2.tar.gz |
Merge pull request #747 from hhatto/w605-position
Change the position pointed out by W605
Diffstat (limited to 'pycodestyle.py')
-rwxr-xr-x | pycodestyle.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pycodestyle.py b/pycodestyle.py index b69ce33..dc86d30 100755 --- a/pycodestyle.py +++ b/pycodestyle.py @@ -1524,7 +1524,7 @@ def python_3000_invalid_escape_sequence(logical_line, tokens): pos += 1 if string[pos] not in valid: yield ( - pos, + line.lstrip().find(text), "W605 invalid escape sequence '\\%s'" % string[pos], ) |