Skip to content

Commit d8f10a9

Browse files
authored
Merge pull request #747 from hhatto/w605-position
Change the position pointed out by W605
2 parents fac2871 + 25221c9 commit d8f10a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycodestyle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1524,7 +1524,7 @@ def python_3000_invalid_escape_sequence(logical_line, tokens):
15241524
pos += 1
15251525
if string[pos] not in valid:
15261526
yield (
1527-
pos,
1527+
line.lstrip().find(text),
15281528
"W605 invalid escape sequence '\\%s'" %
15291529
string[pos],
15301530
)

0 commit comments

Comments
 (0)