summaryrefslogtreecommitdiff
path: root/buildstream/_yaml.py
diff options
context:
space:
mode:
authorJames Ennis <james.ennis@codethink.com>2018-02-19 10:25:32 +0000
committerJames Ennis <james.ennis@codethink.com>2018-03-14 17:31:06 +0000
commitdfa45f0415bcaa623ee121789a0935100fd34f6a (patch)
tree26a18d9a69999555a489ee7c1cbd54da30d42e59 /buildstream/_yaml.py
parent4cfa0bdffbaacfbaf12ec8c6ab2f52bace0ef716 (diff)
downloadbuildstream-dfa45f0415bcaa623ee121789a0935100fd34f6a.tar.gz
pylint - dealt with redefined-outer-name and redefined-built in warnings
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