changeset 34729:6f532c1a4af0

wireproto: use listcomp instead of map() The latter returns a generator object on Python 3, which breaks various parts of hg that expected a list. Differential Revision: https://phab.mercurial-scm.org/D1100
author Augie Fackler <augie@google.com>
date Sun, 15 Oct 2017 00:39:29 -0400
parents 09397d0dd3b7
children 6be264009841
files mercurial/wireproto.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/wireproto.py	Sun Oct 15 00:37:24 2017 -0400
+++ b/mercurial/wireproto.py	Sun Oct 15 00:39:29 2017 -0400
@@ -153,7 +153,7 @@
 
 def decodelist(l, sep=' '):
     if l:
-        return map(bin, l.split(sep))
+        return [bin(v) for v in  l.split(sep)]
     return []
 
 def encodelist(l, sep=' '):