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.
2 parents 686c84b + 9184238 commit 19a3925Copy full SHA for 19a3925
pycodestyle.py
@@ -1797,6 +1797,7 @@ def expand_indent(line):
1797
>>> expand_indent(' \t')
1798
16
1799
"""
1800
+ line = line.rstrip('\n\r')
1801
if '\t' not in line:
1802
return len(line) - len(line.lstrip())
1803
result = 0
testsuite/E30not.py
@@ -167,6 +167,10 @@ def foo(x):
167
# for no E30x being emitted.
168
def bar(): pass
169
def baz(): pass
170
+
171
172
+def main():
173
+ pass
174
#: E704:4:5 E704:5:5
175
def foo():
176
# This emits the (ignored-by-default) E704, but here we're testing
0 commit comments