mirror of https://github.com/python/cpython
Andrew Kuchling:
Fixed precendence bug that meant setting skip_blanks to false didn't work under some circumstances.
This commit is contained in:
parent
f11296bdea
commit
3d05c16003
|
@ -256,7 +256,7 @@ class TextFile:
|
|||
|
||||
# blank line (whether we rstrip'ed or not)? skip to next line
|
||||
# if appropriate
|
||||
if line == '' or line == '\n' and self.skip_blanks:
|
||||
if (line == '' or line == '\n') and self.skip_blanks:
|
||||
continue
|
||||
|
||||
if self.join_lines:
|
||||
|
|
Loading…
Reference in New Issue