[python-hdf5storage] 136/152: Moved from using list.copy to copy.deepcopy(list) for Python 2 compatibility.
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Feb 29 08:24:42 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to annotated tag 0.1
in repository python-hdf5storage.
commit 6b71a13c1cd576cead40bd6e4b92550c8a69eea2
Author: Freja Nordsiek <fnordsie at gmail.com>
Date: Sat Feb 15 22:17:44 2014 -0500
Moved from using list.copy to copy.deepcopy(list) for Python 2 compatibility.
---
hdf5storage/__init__.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/hdf5storage/__init__.py b/hdf5storage/__init__.py
index b79e660..d26be15 100644
--- a/hdf5storage/__init__.py
+++ b/hdf5storage/__init__.py
@@ -678,8 +678,8 @@ class MarshallerCollection(object):
"""
# Combine both sets of marshallers.
- self._marshallers = self._builtin_marshallers.copy()
- self._marshallers.extend(self._user_marshallers)
+ self._marshallers = copy.deepcopy(self._builtin_marshallers)
+ self._marshallers.extend(copy.deepcopy(self._user_marshallers))
# Construct the dictionary to look up the appropriate marshaller
# by type.
@@ -720,7 +720,7 @@ class MarshallerCollection(object):
marshallers = [marshallers]
for m in marshallers:
if m not in self._user_marshallers:
- self._user_marshallers.append(m)
+ self._user_marshallers.append(copy.deepcopy(m))
self._update_marshallers()
def remove_marshaller(self, marshallers):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-hdf5storage.git
More information about the debian-science-commits
mailing list