Merge "Fix use of a renamed itertools function in python3"

This commit is contained in:
Jenkins 2016-05-16 20:58:20 +00:00 committed by Gerrit Code Review
commit af1eccf965
1 changed files with 3 additions and 2 deletions

View File

@ -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]))