summaryrefslogtreecommitdiff
path: root/buildstream/_frontend/widget.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-04-14 19:23:00 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-04-14 19:23:00 +0900
commit476526fc10046387802899d40f8c4562164990f9 (patch)
treedc9181fd20fefafedbbe702423e18f93700e97ff /buildstream/_frontend/widget.py
parent7db09e2cbf3a5b1646cac19830e4a65483e73dcb (diff)
downloadbuildstream-476526fc10046387802899d40f8c4562164990f9.tar.gz
element.py: Rename _get_full_display_key() -> _get_display_key()
The extra "full" was a bit redundant here, the Element does not export any "less than full" display key accessor, so lets use a more simple name for this.
Diffstat (limited to 'buildstream/_frontend/widget.py')
-rw-r--r--buildstream/_frontend/widget.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildstream/_frontend/widget.py b/buildstream/_frontend/widget.py
index ed53d135d..f5e08ad08 100644
--- a/buildstream/_frontend/widget.py
+++ b/buildstream/_frontend/widget.py
@@ -248,7 +248,7 @@ class CacheKey(Widget):
key = ' ' * self.key_length
plugin = _plugin_lookup(element_id)
if isinstance(plugin, Element):
- _, key, missing = plugin._get_full_display_key()
+ _, key, missing = plugin._get_display_key()
if message.message_type in ERROR_MESSAGES:
text = self.err_profile.fmt(key)
@@ -690,7 +690,7 @@ class LogLine(Widget):
for element in dependencies:
line = format_
- full_key, cache_key, dim_keys = element._get_full_display_key()
+ full_key, cache_key, dim_keys = element._get_display_key()
line = p.fmt_subst(line, 'name', element._get_full_name(), fg='blue', bold=True)
line = p.fmt_subst(line, 'key', cache_key, fg='yellow', dim=dim_keys)