summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Stapleton Cordasco <graffatcolmingov@gmail.com>2018-04-12 17:01:03 -0500
committerGitHub <noreply@github.com>2018-04-12 17:01:03 -0500
commitd8f10a90e7ec93221d03b414b105f9514c469ad2 (patch)
tree9646b10c4cf2140a07d32916949406d92bb0dc6f
parentfac287120f1672b06bc63065feed5f20a34f95f2 (diff)
parent25221c95fd180fbc30fb17de2c1930386348ac51 (diff)
downloadpep8-d8f10a90e7ec93221d03b414b105f9514c469ad2.tar.gz
Merge pull request #747 from hhatto/w605-position
Change the position pointed out by W605
-rwxr-xr-xpycodestyle.py2
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],
)