summaryrefslogtreecommitdiff
path: root/buildstream/_yaml.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/_yaml.py')
-rw-r--r--buildstream/_yaml.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildstream/_yaml.py b/buildstream/_yaml.py
index 718f7321b..a597962ff 100644
--- a/buildstream/_yaml.py
+++ b/buildstream/_yaml.py
@@ -20,7 +20,7 @@
import sys
import collections
-import copy
+from copy import deepcopy
from contextlib import ExitStack
from ruamel import yaml
@@ -238,7 +238,7 @@ def dump(node, filename=None):
#
def node_decorated_copy(filename, toplevel, copy_tree=False):
if copy_tree:
- result = copy.deepcopy(toplevel)
+ result = deepcopy(toplevel)
else:
result = toplevel