diff options
author | James Ennis <james.ennis@codethink.com> | 2018-02-19 10:25:32 +0000 |
---|---|---|
committer | James Ennis <james.ennis@codethink.com> | 2018-03-14 17:31:06 +0000 |
commit | dfa45f0415bcaa623ee121789a0935100fd34f6a (patch) | |
tree | 26a18d9a69999555a489ee7c1cbd54da30d42e59 /buildstream/_yaml.py | |
parent | 4cfa0bdffbaacfbaf12ec8c6ab2f52bace0ef716 (diff) | |
download | buildstream-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.py | 4 |
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 |