changeset 43673:ec53ea01c9e6

patchbomb: fix wrong argument type when calling mail generator.flatten()
author Denis Laxalde <denis.laxalde@logilab.fr>
date Wed, 13 Nov 2019 17:06:05 +0100
parents ddb5d097d561
children af9c73f26371
files hgext/patchbomb.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/patchbomb.py	Wed Nov 13 16:46:28 2019 +0100
+++ b/hgext/patchbomb.py	Wed Nov 13 17:06:05 2019 +0100
@@ -958,7 +958,7 @@
             ui.pager(b'email')
             generator = mail.Generator(ui, mangle_from_=False)
             try:
-                generator.flatten(m, 0)
+                generator.flatten(m, False)
                 ui.write(b'\n')
             except IOError as inst:
                 if inst.errno != errno.EPIPE:
@@ -973,7 +973,7 @@
                 del m['Bcc']
             fp = stringio()
             generator = mail.Generator(fp, mangle_from_=False)
-            generator.flatten(m, 0)
+            generator.flatten(m, False)
             alldests = to + bcc + cc
             sendmail(sender_addr, alldests, fp.getvalue())