# HG changeset patch # User Pierre-Yves David # Date 2014-05-27 22:02:51 # Node ID 4188cae727ce9a201823b30812a3a63c8e90b883 # Parent ed6e61eaebc0b7ad4303b2ed149c1127a7b96e6e wireproto: use pushkey.decodekey diff --git a/mercurial/wireproto.py b/mercurial/wireproto.py --- a/mercurial/wireproto.py +++ b/mercurial/wireproto.py @@ -317,11 +317,7 @@ class wirepeer(peer.peerrepository): self.ui.debug('preparing listkeys for "%s"\n' % namespace) yield {'namespace': encoding.fromlocal(namespace)}, f d = f.value - r = {} - for l in d.splitlines(): - k, v = l.split('\t') - r[encoding.tolocal(k)] = encoding.tolocal(v) - yield r + yield pushkeymod.decodekeys(d) def stream_out(self): return self._callstream('stream_out')