diff options
author | Chandan Singh <chandan@chandansingh.net> | 2020-04-27 21:22:06 +0000 |
---|---|---|
committer | Chandan Singh <chandan@chandansingh.net> | 2020-04-27 21:22:06 +0000 |
commit | db4f9978b4392c0c095a4670d41e4d77001d34e3 (patch) | |
tree | c37a8ecd22ab7a34e4a783f65c50790ea037f2e1 | |
parent | dd29f0d5b877c89787b5ce08df51a9faf8abbcc8 (diff) | |
parent | 5aa5c7c3e49e63d7e8416db1e81972fa29887ea5 (diff) | |
download | buildstream-db4f9978b4392c0c095a4670d41e4d77001d34e3.tar.gz |
Merge branch 'willsalmon/more_as_str' into 'master'
Adding as_str too Mapping nodes
See merge request BuildStream/buildstream!1866
-rw-r--r-- | src/buildstream/node.pyx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buildstream/node.pyx b/src/buildstream/node.pyx index e33a11753..ea61d9366 100644 --- a/src/buildstream/node.pyx +++ b/src/buildstream/node.pyx @@ -90,6 +90,9 @@ cdef class Node: def __json__(self): raise ValueError("Nodes should not be allowed when jsonify-ing data", self) + def __str__(self): + return "{}: {}".format(self.get_provenance(), self.strip_node_info()) + ############################################################# # Abstract Public Methods # ############################################################# |