mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix deprecation warning in nested outputter
Pull request #50963 introduces a deprecation warning on later Python 3 releases, as the abstract base classes now live in `collections.abc`. This fixes that deprecation warning.
This commit is contained in:
parent
13de0b8f18
commit
529cce0dba
1 changed files with 5 additions and 1 deletions
|
@ -33,7 +33,11 @@ import salt.utils.color
|
|||
import salt.utils.odict
|
||||
import salt.utils.stringutils
|
||||
from salt.ext import six
|
||||
from collections import Mapping
|
||||
|
||||
try:
|
||||
from collections.abc import Mapping
|
||||
except ImportError:
|
||||
from collections import Mapping
|
||||
|
||||
|
||||
class NestDisplay(object):
|
||||
|
|
Loading…
Add table
Reference in a new issue