From bc0d564f8a7a4b67e1cb8b5a49e9e9e0470da250 Mon Sep 17 00:00:00 2001 From: Benjamin Schubert Date: Fri, 8 May 2020 09:35:27 +0100 Subject: element.py: Fix documentation around `node` usage --- src/buildstream/element.py | 2 +- src/buildstream/plugin.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/buildstream/element.py b/src/buildstream/element.py index 862f00962..d8c0f6f79 100644 --- a/src/buildstream/element.py +++ b/src/buildstream/element.py @@ -517,7 +517,7 @@ class Element(Plugin): # Expect a string 'name' in 'node', substituting any # variables in the returned string - name = self.node_subst_vars(node.get_str('name')) + name = self.node_subst_vars(node.get_scalar('name')) """ try: return self.__variables.subst(node.as_str()) diff --git a/src/buildstream/plugin.py b/src/buildstream/plugin.py index ff0604811..dfb54332f 100644 --- a/src/buildstream/plugin.py +++ b/src/buildstream/plugin.py @@ -304,7 +304,7 @@ class Plugin: .. note:: For Elements, when variable substitution is desirable, the - :func:`Element.node_subst_member() ` + :func:`Element.node_subst_vars() ` method can be used. """ raise ImplError( -- cgit v1.2.1