mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 16:31:02 +03:00
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
This commit is contained in:
parent
e90604cb5e
commit
7914273147
@ -153,7 +153,7 @@ future = peer.future
|
||||
|
||||
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=' '):
|
||||
|
Loading…
Reference in New Issue
Block a user