From 473d5f7657d185319a111717f4203bc4dd6defe3 Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Thu, 29 Oct 2009 21:05:36 +0000 Subject: [PATCH] Prefer interpolation over concatenation here. Signed-off-by: Chris Lamb --- daklib/queue.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/daklib/queue.py b/daklib/queue.py index 9e5c16c4..edd14d7e 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -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 -- 2.39.5