diff options
author | Javier Jardón <jjardon@gnome.org> | 2018-10-18 15:07:56 +0100 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2018-10-18 15:13:35 +0100 |
commit | f1aa0974d36f4201098004794ca8b5f263fb01a1 (patch) | |
tree | fea0132e12378885370285271bb8490112f50fa5 /buildstream/_artifactcache | |
parent | 892866e1fbc08c9cb233ee9f4fe23cd01d0a4b56 (diff) | |
download | buildstream-f1aa0974d36f4201098004794ca8b5f263fb01a1.tar.gz |
Fix python warnings: Use collections.abc instead collectionsjjardon/warnings_collections
Since python 3.3, collections has been moved to collections.abc module.
For backwards compatibility, they continue to be visible in this module through Python 3.7.
Subsequently, they will be removed entirely.
See https://docs.python.org/3/library/collections.html
Diffstat (limited to 'buildstream/_artifactcache')
-rw-r--r-- | buildstream/_artifactcache/artifactcache.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/buildstream/_artifactcache/artifactcache.py b/buildstream/_artifactcache/artifactcache.py index ecb5738d7..7977691c0 100644 --- a/buildstream/_artifactcache/artifactcache.py +++ b/buildstream/_artifactcache/artifactcache.py @@ -19,7 +19,8 @@ import os import string -from collections import Mapping, namedtuple +from collections import namedtuple +from collections.abc import Mapping from ..types import _KeyStrength from .._exceptions import ArtifactError, ImplError, LoadError, LoadErrorReason |