LLVMBuild: Remove trailing newline, which irked me.
[oota-llvm.git] / utils / llvm-build / llvmbuild / main.py
index 9c3126c48015627d37910f9b7ac75722c8d896f5..4c14f46c80ab0d6c0b061e77ad2814843fbeb817 100644 (file)
@@ -262,7 +262,8 @@ class LLVMProjectInfo(object):
             for i,fragment in enumerate(fragments):
                 print >>f, '[component_%d]' % i
                 f.write(fragment)
-                print >>f
+                if fragment is not fragments[-1]:
+                    print >>f
             f.close()
 
     def write_library_table(self, output_path):