summaryrefslogtreecommitdiff
path: root/buildstream/element.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-04-02 22:45:34 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-04-03 22:49:10 +0900
commit500f4f330fde8b6001a2f8d8921bd5b8acb79960 (patch)
treefbde3a81f1732ba219d131438ec8134ea6b2c298 /buildstream/element.py
parent70c73b93c0aca0c36c17ad4686b7e71b32a8dc1d (diff)
downloadbuildstream-500f4f330fde8b6001a2f8d8921bd5b8acb79960.tar.gz
_context.py: Adhere to policy on private symbols
And adjust all surrounding sources for changed symbols. This is a part of issue #285
Diffstat (limited to 'buildstream/element.py')
-rw-r--r--buildstream/element.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/buildstream/element.py b/buildstream/element.py
index 418096c58..b127a0d8e 100644
--- a/buildstream/element.py
+++ b/buildstream/element.py
@@ -1009,7 +1009,7 @@ class Element(Plugin):
self.__cache_key_dict = {
'artifact-version': "{}.{}".format(_BST_CORE_ARTIFACT_VERSION,
self.BST_ARTIFACT_VERSION),
- 'context': context._get_cache_key(),
+ 'context': context.get_cache_key(),
'project': project._get_cache_key(),
'element': self.get_unique_key(),
'execution-environment': self.__sandbox_config.get_unique_key(),
@@ -1500,7 +1500,7 @@ class Element(Plugin):
# Fetch the main toplevel project, in case this is a junctioned
# subproject, we want to use the rules defined by the main one.
context = self._get_context()
- project = context._get_toplevel_project()
+ project = context.get_toplevel_project()
if prompt is not None:
environment['PS1'] = prompt
@@ -1609,7 +1609,7 @@ class Element(Plugin):
def _get_strict(self):
project = self._get_project()
context = self._get_context()
- return context._get_strict(project.name)
+ return context.get_strict(project.name)
# _pull_pending()
#