Bug 858031 - Don't append an additional newline to the imported patch; r=jdm
authorEd Morley <emorley@mozilla.com>
Thu, 04 Apr 2013 17:30:20 +0100
changeset 72 a0d199c0673e
parent 71 34334b242ec7
child 73 6cad4b904ceb
push id53
push useremorley@mozilla.com
push dateThu, 04 Apr 2013 16:31:54 +0000
reviewersjdm
bugs858031
Bug 858031 - Don't append an additional newline to the imported patch; r=jdm
bz.py
--- a/bz.py
+++ b/bz.py
@@ -156,18 +156,17 @@ class Patch(Attachment):
 
   def __unicode__(self):
     return u"""# vim: se ft=diff :
 # HG changeset patch
 # User %s
 # Date %s
 %s
 
-%s
-""" % (self.author, self.date, self.commit_message, self.data)
+%s""" % (self.author, self.date, self.commit_message, self.data)
 
   @property
   def metadata(self):
     return {
       "bugnum" : self.bug.num,
       "id" : self.id,
       "title" : self.bug.title,
       "desc" : self.desc,