Mercurial > hg-stable
changeset 9374:ad73f6986ef5
color: no need for itertools, zip() is good enough
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Fri, 21 Aug 2009 14:29:54 +0200 |
parents | b34184c046ac |
children | b47fa638bfc7 |
files | hgext/color.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/color.py Fri Aug 21 09:33:27 2009 +0200 +++ b/hgext/color.py Fri Aug 21 14:29:54 2009 +0200 @@ -59,7 +59,6 @@ ''' import os, sys -import itertools from mercurial import cmdutil, commands, extensions, error from mercurial.i18n import _ @@ -146,7 +145,7 @@ patchlines = ui.popbuffer().splitlines() patchnames = repo.mq.series - for patch, patchname in itertools.izip(patchlines, patchnames): + for patch, patchname in zip(patchlines, patchnames): if opts['missing']: effects = _patch_effects['missing'] # Determine if patch is applied.