Mercurial > public > mercurial-scm > hg-stable
diff hgext/hooklib/changeset_obsoleted.py @ 49296:ef5f5f1cbd90
py3: constant-fold some `pycompat.ispy3`
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Tue, 31 May 2022 00:50:29 +0200 |
parents | 6000f5b25c9b |
children | 5392bf258049 |
line wrap: on
line diff
--- 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'):