# HG changeset patch # User Augie Fackler # Date 2018-08-09 23:37:57 # Node ID 751caa6a293664aa0296ab52f634872442f2bb5c # Parent ed9537bd2d1a8888e757d56e425e734580577664 patchbomb: use sysstrs when describing content-type Differential Revision: https://phab.mercurial-scm.org/D4228 diff --git a/hgext/patchbomb.py b/hgext/patchbomb.py --- a/hgext/patchbomb.py +++ b/hgext/patchbomb.py @@ -375,7 +375,7 @@ def _getbundlemsgs(repo, sender, bundle, 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',