summaryrefslogtreecommitdiff
path: root/buildstream/_artifact.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/_artifact.py')
-rw-r--r--buildstream/_artifact.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/buildstream/_artifact.py b/buildstream/_artifact.py
index 81b9f3642..d2fdd0f34 100644
--- a/buildstream/_artifact.py
+++ b/buildstream/_artifact.py
@@ -67,12 +67,10 @@ class Artifact():
#
# Returns:
# (Directory): The virtual directory object
- # (str): The chosen key
#
def get_files(self):
- subdir = "files"
-
- return self._get_subdirectory(subdir)
+ files, _ = self._get_subdirectory("files")
+ return files
# get_buildtree():
#
@@ -80,12 +78,10 @@ class Artifact():
#
# Returns:
# (Directory): The virtual directory object
- # (str): The chosen key
#
def get_buildtree(self):
- subdir = "buildtree"
-
- return self._get_subdirectory(subdir)
+ buildtree, _ = self._get_subdirectory("buildtree")
+ return buildtree
# get_extract_key():
#