summaryrefslogtreecommitdiff
path: root/buildstream/_artifactcache
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-11-06 18:15:33 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-11-06 18:15:33 +0900
commit27aac095bdb6b0025c989572789a1f98d8d89b3c (patch)
tree0ca7572b7db4b8b5fcb47e08fda41e22bbe41990 /buildstream/_artifactcache
parent0defb35c0334d78e48bcf21ec6b106b67761e1bc (diff)
downloadbuildstream-27aac095bdb6b0025c989572789a1f98d8d89b3c.tar.gz
Refactoring: Move exceptions module to be private
Hide all of buildstream's internal exceptions from the API surface.
Diffstat (limited to 'buildstream/_artifactcache')
-rw-r--r--buildstream/_artifactcache/artifactcache.py3
-rw-r--r--buildstream/_artifactcache/ostreecache.py2
-rw-r--r--buildstream/_artifactcache/tarcache.py2
3 files changed, 4 insertions, 3 deletions
diff --git a/buildstream/_artifactcache/artifactcache.py b/buildstream/_artifactcache/artifactcache.py
index 246a7691d..66e6520c9 100644
--- a/buildstream/_artifactcache/artifactcache.py
+++ b/buildstream/_artifactcache/artifactcache.py
@@ -21,7 +21,8 @@
import os
from collections import Mapping
-from .. import utils, ImplError
+from .._exceptions import ImplError
+from .. import utils
from .. import _yaml
diff --git a/buildstream/_artifactcache/ostreecache.py b/buildstream/_artifactcache/ostreecache.py
index 85ad3a4cf..d958c0bc5 100644
--- a/buildstream/_artifactcache/ostreecache.py
+++ b/buildstream/_artifactcache/ostreecache.py
@@ -24,7 +24,7 @@ import string
import tempfile
from .. import _ostree, utils
-from ..exceptions import _ArtifactError
+from .._exceptions import _ArtifactError
from ..element import _KeyStrength
from .._ostree import OSTreeError
diff --git a/buildstream/_artifactcache/tarcache.py b/buildstream/_artifactcache/tarcache.py
index 74ba0b3a0..5f28dcb41 100644
--- a/buildstream/_artifactcache/tarcache.py
+++ b/buildstream/_artifactcache/tarcache.py
@@ -26,7 +26,7 @@ import subprocess
from .. import utils
from ..element import _KeyStrength
from .._message import Message, MessageType
-from ..exceptions import _ArtifactError, ProgramNotFoundError
+from .._exceptions import _ArtifactError, ProgramNotFoundError
from . import ArtifactCache