# HG changeset patch # User Augie Fackler # Date 1533857877 14400 # Node ID 751caa6a293664aa0296ab52f634872442f2bb5c # Parent ed9537bd2d1a8888e757d56e425e734580577664 patchbomb: use sysstrs when describing content-type Differential Revision: https://phab.mercurial-scm.org/D4228 diff -r ed9537bd2d1a -r 751caa6a2936 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',