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:
Erik Johnson 2019-01-31 10:21:42 -06:00
parent 13de0b8f18
commit 529cce0dba
No known key found for this signature in database
GPG key ID: 5E5583C437808F3F

View file

@ -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):