diff options
author | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-07-10 16:54:06 +0100 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-07-15 14:14:03 +0000 |
commit | ee642d79724495343521949f1268b9a7068c267f (patch) | |
tree | a2949775a91cb8b17c35f97bcde0ee8e384a44e4 /src/buildstream/_yaml.pyx | |
parent | 71cffad863f89d1d53115bb3af36c0d0cf70ce6a (diff) | |
download | buildstream-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.pyx | 2 |
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 |