diff options
author | hhatto <hhatto.jp@gmail.com> | 2018-04-12 23:28:51 +0900 |
---|---|---|
committer | hhatto <hhatto.jp@gmail.com> | 2018-04-12 23:28:51 +0900 |
commit | 25221c95fd180fbc30fb17de2c1930386348ac51 (patch) | |
tree | 128a03302ad19d1c6cef083ba2df4b94e55349a4 | |
parent | f73c4bb211986cd8d340de2f018c3ff6a3d73c5f (diff) | |
download | pep8-25221c95fd180fbc30fb17de2c1930386348ac51.tar.gz |
Change the position pointed out by W605
-rwxr-xr-x | pycodestyle.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pycodestyle.py b/pycodestyle.py index 1c8c5d2..da61e19 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], ) |