hgext/hooklib/changeset_published.py
changeset 49288 ef5f5f1cbd90
parent 48875 6000f5b25c9b
child 49865 5392bf258049
--- a/hgext/hooklib/changeset_published.py	Sun May 29 15:38:01 2022 +0200
+++ b/hgext/hooklib/changeset_published.py	Tue May 31 00:50:29 2022 +0200
@@ -113,7 +113,7 @@
         msg['From'] = mail.addressencode(ui, sender, n.charsets, n.test)
     msg['To'] = ', '.join(sorted(subs))
 
-    msgtext = msg.as_bytes() if pycompat.ispy3 else msg.as_string()
+    msgtext = msg.as_bytes()
     if ui.configbool(b'notify', b'test'):
         ui.write(msgtext)
         if not msgtext.endswith(b'\n'):