Revision ce5fb329 ncclient/operations/retrieve.py

b/ncclient/operations/retrieve.py
15 15
from rpc import RPC, RPCReply
16 16

  
17 17
from ncclient import content
18
from copy import deepcopy
18 19

  
19 20
import util
20 21

  
......
71 72

  
72 73
        :seealso: :ref:`return`
73 74
        """
74
        spec = Get.SPEC.copy()
75
        spec = deepcopy(Get.SPEC)
75 76
        if filter is not None:
76 77
            spec['subtree'].append(util.build_filter(filter))
77 78
        return self._request(spec)
......
95 96

  
96 97
        :seealso: :ref:`return`
97 98
        """
98
        spec = GetConfig.SPEC.copy()
99
        spec = deepcopy(GetConfig.SPEC)
99 100
        spec['subtree'].append(util.store_or_url('source', source, self._assert))
100 101
        if filter is not None:
101 102
            spec['subtree'].append(util.build_filter(filter))

Also available in: Unified diff