mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Use the zip_longest from six module for python 3 compatiblity
This commit is contained in:
parent
18d5ff9a8e
commit
52b68d695a
1 changed files with 2 additions and 1 deletions
|
@ -255,6 +255,7 @@ from salt.utils.serializers import json as json_serializer
|
|||
from salt.ext.six.moves import map
|
||||
import salt.ext.six as six
|
||||
from salt.ext.six import string_types, integer_types
|
||||
from salt.ext.six.moves import zip_longest
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
@ -659,7 +660,7 @@ def _unify_sources_and_hashes(source=None, source_hash=None,
|
|||
return (True, '', [(source, source_hash)])
|
||||
|
||||
# Make a nice neat list of tuples exactly len(sources) long..
|
||||
return True, '', list(izip_longest(sources, source_hashes[:len(sources)]))
|
||||
return True, '', list(zip_longest(sources, source_hashes[:len(sources)]))
|
||||
|
||||
|
||||
def _get_template_texts(source_list=None,
|
||||
|
|
Loading…
Add table
Reference in a new issue