# HG changeset patch # User Yuya Nishihara # Date 2018-08-12 03:01:34 # Node ID f68ad9b4a43bf37f9127425464d188f2e92e785f # Parent 2e578eced95816f820df50f24e4e6cf97696cbdd mail: remove redundant bytesurl() from addrlistencode() _addressencode() returns a bytes. diff --git a/mercurial/mail.py b/mercurial/mail.py --- a/mercurial/mail.py +++ b/mercurial/mail.py @@ -348,7 +348,7 @@ def addrlistencode(ui, addrs, charsets=N [encoding.strfromlocal(a) for a in addrs]): if name or addr: result.append(_addressencode(ui, name, addr, charsets)) - return [pycompat.bytesurl(r) for r in result] + return result def mimeencode(ui, s, charsets=None, display=False): '''creates mime text object, encodes it if needed, and sets