D1100: wireproto: use listcomp instead of map()
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Mon Oct 16 05:17:32 EDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG6f532c1a4af0: wireproto: use listcomp instead of map() (authored by durin42, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D1100?vs=2792&id=2802
REVISION DETAIL
https://phab.mercurial-scm.org/D1100
AFFECTED FILES
mercurial/wireproto.py
CHANGE DETAILS
diff --git a/mercurial/wireproto.py b/mercurial/wireproto.py
--- a/mercurial/wireproto.py
+++ b/mercurial/wireproto.py
@@ -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=' '):
To: durin42, #hg-reviewers, ryanmce
Cc: ryanmce, mercurial-devel
More information about the Mercurial-devel
mailing list