Skip to content
Snippets Groups Projects
Commit ff7e9ca5 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[plotters][views] Fix handling of itertools.izip

In python 3, izip became zip in the global space.
parent cf6b5dd6
No related branches found
No related tags found
2 merge requests!2551.4.x,!246Fix handling of itertools.izip
Pipeline #
......@@ -29,6 +29,7 @@ import os
import itertools
import base64
import collections
import six
import logging
logger = logging.getLogger(__name__)
......@@ -122,7 +123,12 @@ def plot(request):
report_experiments, report_legends = report._get_experiments_and_alias(alias_filter)
experiments = collections.OrderedDict()
for xpid, analyzer, output in itertools.izip(
if six.PY2:
zip_ = itertools.izip
else:
zip_ = zip
for xpid, analyzer, output in zip_(
report_experiments or use.getlist('experiment') or use.getlist('experiment[]'),
itertools.cycle(use.getlist('analyzer') or use.getlist('analyzer[]')),
itertools.cycle(use.getlist('output') or use.getlist('output[]')),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment