hgext/notify.py
changeset 43575 67b4439c09b2
parent 43506 9f70512ae2cf
child 43576 14b96072797d
--- a/hgext/notify.py	Sat Nov 09 13:23:55 2019 +0100
+++ b/hgext/notify.py	Sat Nov 09 12:45:14 2019 +0100
@@ -421,8 +421,8 @@
         maxsubject = int(self.ui.config(b'notify', b'maxsubject'))
         if maxsubject:
             subject = stringutil.ellipsis(subject, maxsubject)
-        msg['Subject'] = encoding.strfromlocal(
-            mail.headencode(self.ui, subject, self.charsets, self.test)
+        msg['Subject'] = mail.headencode(
+            self.ui, subject, self.charsets, self.test
         )
 
         # try to make message have proper sender