patchbomb: use sysstrs when describing content-type
authorAugie Fackler <augie@google.com>
Thu, 09 Aug 2018 19:37:57 -0400
changeset 39071 751caa6a2936
parent 39070 ed9537bd2d1a
child 39072 cecb05c371f7
patchbomb: use sysstrs when describing content-type Differential Revision: https://phab.mercurial-scm.org/D4228
hgext/patchbomb.py
--- a/hgext/patchbomb.py	Thu Aug 09 18:28:43 2018 -0400
+++ b/hgext/patchbomb.py	Thu Aug 09 19:37:57 2018 -0400
@@ -375,7 +375,7 @@
     msg = emimemultipart.MIMEMultipart()
     if body:
         msg.attach(mail.mimeencode(ui, body, _charsets, opts.get(r'test')))
-    datapart = emimebase.MIMEBase('application', 'x-mercurial-bundle')
+    datapart = emimebase.MIMEBase(r'application', r'x-mercurial-bundle')
     datapart.set_payload(bundle)
     bundlename = '%s.hg' % opts.get(r'bundlename', 'bundle')
     datapart.add_header(r'Content-Disposition', r'attachment',