8000 Merge branch 'develop' into saltcmd · perlchild/salt@570e53d · GitHub
[go: up one dir, main page]

Skip to content

Commit 570e53d

Browse files
Merge branch 'develop' into saltcmd
2 parents f4d7925 + 7f935c5 commit 570e53d

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