summaryrefslogtreecommitdiff
path: root/src/buildstream/_yaml.pyx
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-07-10 16:54:06 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-07-15 14:14:03 +0000
commitee642d79724495343521949f1268b9a7068c267f (patch)
treea2949775a91cb8b17c35f97bcde0ee8e384a44e4 /src/buildstream/_yaml.pyx
parent71cffad863f89d1d53115bb3af36c0d0cf70ce6a (diff)
downloadbuildstream-ee642d79724495343521949f1268b9a7068c267f.tar.gz
node: Rename 'copy' to 'clone'
A 'clone' operation has an implicit understanding that it is expensive, which is not the case of a 'copy' operation, which is more usually a shallow copy. Therefore renaming to 'clone'
Diffstat (limited to 'src/buildstream/_yaml.pyx')
-rw-r--r--src/buildstream/_yaml.pyx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/_yaml.pyx b/src/buildstream/_yaml.pyx
index 66f71d97a..a9ed2309b 100644
--- a/src/buildstream/_yaml.pyx
+++ b/src/buildstream/_yaml.pyx
@@ -325,7 +325,7 @@ cpdef MappingNode load_data(str data, int file_index=node._SYNTHETIC_FILE_INDEX,
node._set_root_node_for_file(file_index, contents)
if copy_tree:
- contents = contents.copy()
+ contents = contents.clone()
return contents