We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8e36a0 commit d3118d4Copy full SHA for d3118d4
pycodestyle.py
@@ -1829,7 +1829,15 @@ def update_counts(s, counts):
1829
1830
1831
def _is_eol_token(token):
1832
- return token[0] in NEWLINE or token[4][token[3][1]:].lstrip() == '\\\n'
+ if token[0] in NEWLINE:
1833
+ return True
1834
+
1835
+ # Check if the line's penultimate character is a continuation
1836
+ # character
1837
+ if token[4][-2] != '\\':
1838
+ return False
1839
1840
+ return token[4][token[3][1]:].lstrip() == '\\\n'
1841
1842
1843
########################################################################
0 commit comments