CRLF should be also treated as blank line

This commit is contained in:
Akinori Hattori
2014-07-08 20:21:45 +09:00
parent da89b66594
commit feae67484c

View File

@@ -237,7 +237,7 @@ class FastParser(use_metaclass(CachedFastParser)):
# check for dedents
s = l.lstrip('\t ')
indent = len(l) - len(s)
if not s or s[0] == '#':
if not s or s[0] in ('#', '\r'):
current_lines.append(l) # just ignore comments and blank lines
continue