10000 Merge branch 'develop' into merge-develop · perlchild/salt@932c772 · GitHub
[go: up one dir, main page]

Skip to content

Commit 932c772

Browse files
authored
Merge branch 'develop' into merge-develop
2 parents 7b4f1a7 + 7f935c5 commit 932c772

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

salt/utils/path.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66

77
# Import python libs
88
from __future__ import absolute_import, print_function, unicode_literals
9-
import collections
9+
try:
10+
from collections.abc import Iterable
11+
except ImportError:
12+
from collections import Iterable
1013
import errno
1114
import logging
1215
import os
@@ -301,7 +304,7 @@ def which_bin(exes):
301304
'''
302305
Scan over some possible executables and return the first one that is found
303306
'''
304-
if not isinstance(exes, collections.Iterable):
307+
if not isinstance(exes, Iterable):
305308
return None
306309
for exe in exes:
307310
path = which(exe)

0 commit comments

Comments
 (0)
0