]> git.decadent.org.uk Git - dak.git/commitdiff
Prefer interpolation over concatenation here.
authorChris Lamb <lamby@debian.org>
Thu, 29 Oct 2009 21:05:36 +0000 (21:05 +0000)
committerChris Lamb <lamby@debian.org>
Thu, 29 Oct 2009 21:05:36 +0000 (21:05 +0000)
Signed-off-by: Chris Lamb <lamby@debian.org>
daklib/queue.py

index 9e5c16c4c1fbc4a7f9806f03c533f42d0594a79b..edd14d7e231b4d1ca2c54aa25502024e877a7ce7 100755 (executable)
@@ -290,16 +290,13 @@ class Upload(object):
         msg = ''
 
         if len(self.rejects) > 0:
-            msg += "\n\nReject Reasons:\n"
-            msg += "\n".join(self.rejects)
+            msg += "\n\nReject Reasons:\n%s" % "\n".join(self.rejects)
 
         if len(self.warnings) > 0:
-            msg += "\n\nWarnings:\n"
-            msg += "\n".join(self.warnings)
+            msg += "\n\nWarnings:\n%s" % "\n".join(self.warnings)
 
         if len(self.notes) > 0:
-            msg += "\n\nNotes:\n"
-            msg += "\n".join(self.notes)
+            msg += "\n\nNotes:\n%s" % "\n".join(self.notes)
 
         return msg