From: Greg Ward <gward@python.net>
Date: Sat, 16 Sep 2000 18:09:22 +0000 (+0000)
Subject: Andrew Kuchling:
X-Git-Tag: v2.0b2~243
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3d05c1600336ad3f09b28cbedc7b31c17dcf51f0;p=python

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 b731762230..c983afa425 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: