Show More
@@ -396,12 +396,14 b' class patchheader(object):' | |||||
396 | self.comments.append('') |
|
396 | self.comments.append('') | |
397 | self.comments.append(message) |
|
397 | self.comments.append(message) | |
398 |
|
398 | |||
399 |
def __ |
|
399 | def __bytes__(self): | |
400 | s = '\n'.join(self.comments).rstrip() |
|
400 | s = '\n'.join(self.comments).rstrip() | |
401 | if not s: |
|
401 | if not s: | |
402 | return '' |
|
402 | return '' | |
403 | return s + '\n\n' |
|
403 | return s + '\n\n' | |
404 |
|
404 | |||
|
405 | __str__ = encoding.strmethod(__bytes__) | |||
|
406 | ||||
405 | def _delmsg(self): |
|
407 | def _delmsg(self): | |
406 | '''Remove existing message, keeping the rest of the comments fields. |
|
408 | '''Remove existing message, keeping the rest of the comments fields. | |
407 | If comments contains 'subject: ', message will prepend |
|
409 | If comments contains 'subject: ', message will prepend |
General Comments 0
You need to be logged in to leave comments.
Login now