Mercurial > hg
comparison mercurial/dispatch.py @ 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 | d5457d94e1c9 |
children | 976a9fd706ed |
comparison
equal
deleted
inserted
replaced
35941:3028a3215a2e | 35942:f81df691efe7 |
---|---|
475 return | 475 return |
476 earlyopts, args = _earlysplitopts(args) | 476 earlyopts, args = _earlysplitopts(args) |
477 if earlyopts: | 477 if earlyopts: |
478 self.badalias = (_("error in definition for alias '%s': %s may " | 478 self.badalias = (_("error in definition for alias '%s': %s may " |
479 "only be given on the command line") | 479 "only be given on the command line") |
480 % (self.name, '/'.join(zip(*earlyopts)[0]))) | 480 % (self.name, '/'.join(pycompat.ziplist(*earlyopts) |
481 [0]))) | |
481 return | 482 return |
482 self.cmdname = cmd = args.pop(0) | 483 self.cmdname = cmd = args.pop(0) |
483 self.givenargs = args | 484 self.givenargs = args |
484 | 485 |
485 try: | 486 try: |