mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
import Callable from collections.abc for python3.7
https://bugs.python.org/issue25988
This commit is contained in:
parent
d7a410070a
commit
d346b42332
1 changed files with 4 additions and 1 deletions
|
@ -22,7 +22,10 @@
|
|||
|
||||
# Import python libs
|
||||
from __future__ import absolute_import, unicode_literals, print_function
|
||||
from collections import Callable
|
||||
try:
|
||||
from collections.abc import Callable
|
||||
except ImportError:
|
||||
from collections import Callable
|
||||
|
||||
# Import 3rd-party libs
|
||||
from salt.ext import six
|
||||
|
|
Loading…
Add table
Reference in a new issue