patchbomb: fix wrong argument type when calling mail generator.flatten()
authorDenis Laxalde <denis.laxalde@logilab.fr>
Wed, 13 Nov 2019 17:06:05 +0100
changeset 43629 ec53ea01c9e6
parent 43628 ddb5d097d561
child 43630 af9c73f26371
patchbomb: fix wrong argument type when calling mail generator.flatten()
hgext/patchbomb.py
--- 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())