diff options
| author | Brett Cannon <brett@python.org> | 2014-08-29 12:33:23 -0400 |
|---|---|---|
| committer | Brett Cannon <brett@python.org> | 2014-08-29 12:33:23 -0400 |
| commit | 272f69a3630bb9ea05892323f88dd06503e59eaf (patch) | |
| tree | 95178a5452b139b28f8fe8280a92a24f2f6c06b6 | |
| parent | 4db529a056fc67153e4053dbc96b7e4e2d9efcc9 (diff) | |
| download | pylint-272f69a3630bb9ea05892323f88dd06503e59eaf.tar.gz | |
Don't use itertools.izip
| -rw-r--r-- | checkers/similar.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/checkers/similar.py b/checkers/similar.py index f563a1e..2cc2e00 100644 --- a/checkers/similar.py +++ b/checkers/similar.py @@ -18,13 +18,14 @@ """ from __future__ import print_function import sys -from itertools import izip from logilab.common.ureports import Table from pylint.interfaces import IRawChecker from pylint.checkers import BaseChecker, table_lines_from_stats + import six +from six.moves import zip class Similar(object): @@ -109,7 +110,7 @@ class Similar(object): for index2 in find(lineset1[index1]): non_blank = 0 for num, ((_, line1), (_, line2)) in enumerate( - izip(lines1(index1), lines2(index2))): + zip(lines1(index1), lines2(index2))): if line1 != line2: if non_blank > min_lines: yield num, lineset1, index1, lineset2, index2 |
