patchbomb: use sysstrs when describing content-type
Differential Revision: https://phab.mercurial-scm.org/D4228
--- 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',