summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-09-16 18:09:22 (GMT)
committerGreg Ward <gward@python.net>2000-09-16 18:09:22 (GMT)
commit3d05c1600336ad3f09b28cbedc7b31c17dcf51f0 (patch)
tree2b03a163088249ad6db6fce6feedd0e01e1764d2 /Lib
parentf11296bdea61a526713027b6337977941aa48fa7 (diff)
downloadcpython-3d05c1600336ad3f09b28cbedc7b31c17dcf51f0.zip
cpython-3d05c1600336ad3f09b28cbedc7b31c17dcf51f0.tar.gz
cpython-3d05c1600336ad3f09b28cbedc7b31c17dcf51f0.tar.bz2
Andrew Kuchling:
Fixed precendence bug that meant setting skip_blanks to false didn't work under some circumstances.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/distutils/text_file.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/text_file.py b/Lib/distutils/text_file.py
index b731762..c983afa 100644
--- a/Lib/distutils/text_file.py
+++ b/Lib/distutils/text_file.py
@@ -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: