##// END OF EJS Templates
wireproto: use pushkey.decodekey
Pierre-Yves David -
r21653:4188cae7 default
parent child Browse files
Show More
@@ -317,11 +317,7 b' class wirepeer(peer.peerrepository):'
317 self.ui.debug('preparing listkeys for "%s"\n' % namespace)
317 self.ui.debug('preparing listkeys for "%s"\n' % namespace)
318 yield {'namespace': encoding.fromlocal(namespace)}, f
318 yield {'namespace': encoding.fromlocal(namespace)}, f
319 d = f.value
319 d = f.value
320 r = {}
320 yield pushkeymod.decodekeys(d)
321 for l in d.splitlines():
322 k, v = l.split('\t')
323 r[encoding.tolocal(k)] = encoding.tolocal(v)
324 yield r
325
321
326 def stream_out(self):
322 def stream_out(self):
327 return self._callstream('stream_out')
323 return self._callstream('stream_out')
General Comments 0
You need to be logged in to leave comments. Login now