py3: use pycompat.maplist() in chgserver
authorMartin von Zweigbergk <martinvonz@google.com>
Wed, 28 Aug 2019 17:36:53 -0700
changeset 42818 0cbe17335857
parent 42817 69506e1b3214
child 42819 6a551a2dc666
py3: use pycompat.maplist() in chgserver test-chg.t almost passes on py3 after this patch. Differential Revision: https://phab.mercurial-scm.org/D6771
mercurial/chgserver.py
--- a/mercurial/chgserver.py	Fri Aug 23 08:54:32 2019 -0700
+++ b/mercurial/chgserver.py	Wed Aug 28 17:36:53 2019 -0700
@@ -172,7 +172,7 @@
         except OSError:
             # could be ENOENT, EPERM etc. not fatal in any case
             pass
-    return _hashlist(map(trystat, paths))[:12]
+    return _hashlist(pycompat.maplist(trystat, paths))[:12]
 
 class hashstate(object):
     """a structure storing confighash, mtimehash, paths used for mtimehash"""