mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue