summaryrefslogtreecommitdiff
path: root/pycodestyle.py
diff options
context:
space:
mode:
Diffstat (limited to 'pycodestyle.py')
-rwxr-xr-xpycodestyle.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pycodestyle.py b/pycodestyle.py
index b9a37f0..235532c 100755
--- a/pycodestyle.py
+++ b/pycodestyle.py
@@ -1797,6 +1797,7 @@ def expand_indent(line):
>>> expand_indent(' \t')
16
"""
+ line = line.rstrip('\n\r')
if '\t' not in line:
return len(line) - len(line.lstrip())
result = 0