diff options
Diffstat (limited to 'pycodestyle.py')
-rwxr-xr-x | pycodestyle.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pycodestyle.py b/pycodestyle.py index 705ba25..0d0789d 100755 --- a/pycodestyle.py +++ b/pycodestyle.py @@ -1794,6 +1794,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 |