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 f733364Copy full SHA for f733364
pycodestyle.py
@@ -1829,7 +1829,14 @@ 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 character
1836
+ if token[4][-2] != '\\':
1837
+ return False
1838
1839
+ return token[4][token[3][1]:].lstrip() == '\\\n'
1840
1841
1842
########################################################################
0 commit comments