hgext/hooklib/changeset_obsoleted.py
changeset 49288 ef5f5f1cbd90
parent 48875 6000f5b25c9b
child 49865 5392bf258049
--- a/hgext/hooklib/changeset_obsoleted.py	Sun May 29 15:38:01 2022 +0200
+++ b/hgext/hooklib/changeset_obsoleted.py	Tue May 31 00:50:29 2022 +0200
@@ -114,7 +114,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'):