use copy instead of deepcopy

This commit is contained in:
Matthias Bernt
2022-01-16 16:42:24 +01:00
parent 5198c82fe9
commit 72141b34e6
+2 -2
View File
@@ -1,5 +1,5 @@
import os
from copy import deepcopy
from copy import copy, deepcopy
from galaxy.util import parse_xml
@@ -23,7 +23,7 @@ def load_with_references(path):
# that are not included in the macros node
macros_el = _macros_el(root)
if macros_el is not None:
macros_copy = deepcopy(macros_el)
macros_copy = copy(macros_el)
macros_el.clear()
else:
macros_copy = None