Fix use of a renamed itertools function in python3
In python3 izip functions got renamed to zip in itertools module. This was breaking support for python3. Change-Id: I6fda87b78e40be134d7c94698cca5d85a51eb989
This commit is contained in:
parent
f280a0a555
commit
62818c3069
@ -26,12 +26,13 @@ updated to match the global requirements. Requirements not in the global
|
||||
files will be dropped.
|
||||
"""
|
||||
|
||||
import itertools
|
||||
import optparse
|
||||
import os
|
||||
import os.path
|
||||
import sys
|
||||
|
||||
import six
|
||||
|
||||
from openstack_requirements import project
|
||||
from openstack_requirements import requirement
|
||||
|
||||
@ -130,7 +131,7 @@ def _sync_requirements_file(
|
||||
reference = source_reqs.get(req.package.lower())
|
||||
if reference:
|
||||
actual = dest_reqs.get(req.package.lower())
|
||||
for req, ref in itertools.izip_longest(actual, reference):
|
||||
for req, ref in six.moves.zip_longest(actual, reference):
|
||||
if not req:
|
||||
# More in globals
|
||||
changes.append(Change(ref[0].package, '', ref[1]))
|
||||
|
Loading…
x
Reference in New Issue
Block a user