changeset 35942:f81df691efe7

py3: use pycompat.ziplist instead of zip zip returns a zip object instead of a list on Python 3. Differential Revision: https://phab.mercurial-scm.org/D2070
author Pulkit Goyal <7895pulkit@gmail.com>
date Wed, 07 Feb 2018 13:10:24 +0530
parents 3028a3215a2e
children bdb6ec909878
files mercurial/dispatch.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/dispatch.py	Tue Feb 06 14:24:16 2018 +0100
+++ b/mercurial/dispatch.py	Wed Feb 07 13:10:24 2018 +0530
@@ -477,7 +477,8 @@
         if earlyopts:
             self.badalias = (_("error in definition for alias '%s': %s may "
                                "only be given on the command line")
-                             % (self.name, '/'.join(zip(*earlyopts)[0])))
+                             % (self.name, '/'.join(pycompat.ziplist(*earlyopts)
+                                                    [0])))
             return
         self.cmdname = cmd = args.pop(0)
         self.givenargs = args