diff options
author | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-07-10 10:22:35 +0100 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-07-15 14:14:03 +0000 |
commit | e6caca7071e9a007f0ec0b59662b7b28e05cd4b1 (patch) | |
tree | 8fd7f26b8e6c41cb3f940b05c0aae2f2f667832a /src/buildstream/_yaml.pyx | |
parent | a1705d5e5ee5ed714528fff37520bf774f8f2fbe (diff) | |
download | buildstream-e6caca7071e9a007f0ec0b59662b7b28e05cd4b1.tar.gz |
_yaml: Mark 'strip_node_info' as buildstream-private
Diffstat (limited to 'src/buildstream/_yaml.pyx')
-rw-r--r-- | src/buildstream/_yaml.pyx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/buildstream/_yaml.pyx b/src/buildstream/_yaml.pyx index 932d32db3..511a5d71a 100644 --- a/src/buildstream/_yaml.pyx +++ b/src/buildstream/_yaml.pyx @@ -91,7 +91,7 @@ cdef class Node: cpdef ProvenanceInformation get_provenance(self): return ProvenanceInformation(self) - cpdef object strip_node_info(self): + cpdef object _strip_node_info(self): raise NotImplementedError() # _assert_fully_composited() @@ -190,7 +190,7 @@ cdef class ScalarNode(Node): return None return str(self.value) - cpdef object strip_node_info(self): + cpdef object _strip_node_info(self): return self.value cpdef void _assert_fully_composited(self) except *: @@ -410,11 +410,11 @@ cdef class MappingNode(Node): cpdef object values(self): return self.value.values() - cpdef object strip_node_info(self): + cpdef object _strip_node_info(self): cdef str key cdef Node value - return {key: value.strip_node_info() for key, value in self.value.items()} + return {key: value._strip_node_info() for key, value in self.value.items()} cdef void __composite(self, MappingNode target, list path=None) except *: cdef str key @@ -657,9 +657,9 @@ cdef class SequenceNode(Node): cpdef list as_str_list(self): return [node.as_str() for node in self.value] - cpdef object strip_node_info(self): + cpdef object _strip_node_info(self): cdef Node value - return [value.strip_node_info() for value in self.value] + return [value._strip_node_info() for value in self.value] cpdef void _assert_fully_composited(self) except *: cdef Node value |