From: Greg Ward Date: Sat, 16 Sep 2000 18:09:22 +0000 (+0000) Subject: Andrew Kuchling: X-Git-Tag: v2.0b2~243 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3d05c1600336ad3f09b28cbedc7b31c17dcf51f0;p=thirdparty%2FPython%2Fcpython.git Andrew Kuchling: Fixed precendence bug that meant setting skip_blanks to false didn't work under some circumstances. --- diff --git a/Lib/distutils/text_file.py b/Lib/distutils/text_file.py index b73176223078..c983afa4252e 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: