]> granicus.if.org Git - python/commitdiff
Andrew Kuchling:
authorGreg Ward <gward@python.net>
Sat, 16 Sep 2000 18:09:22 +0000 (18:09 +0000)
committerGreg Ward <gward@python.net>
Sat, 16 Sep 2000 18:09:22 +0000 (18:09 +0000)
Fixed precendence bug that meant setting skip_blanks to false didn't work
under some circumstances.

Lib/distutils/text_file.py

index b7317622307897eccdbef8e7a1759a6c16658c59..c983afa4252efcd16bcf71e537692f2a996b2cdb 100644 (file)
@@ -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: