Patchwork D1100: wireproto: use listcomp instead of map()

login
register
mail settings
Submitter phabricator
Date Oct. 16, 2017, 9:17 a.m.
Message ID <bfb278b9bde570a65b8d9b061d7f508e@localhost.localdomain>
Download mbox | patch
Permalink /patch/24967/
State Not Applicable
Headers show

Comments

phabricator - Oct. 16, 2017, 9:17 a.m.
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




To: durin42, #hg-reviewers, ryanmce
Cc: ryanmce, mercurial-devel

Patch

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=' '):