[python-hdf5storage] 01/03: Fixed opening mode in loadmat to 'r'.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Feb 29 08:25:15 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to annotated tag 0.1.11
in repository python-hdf5storage.

commit e6a58a736a9c83f06f2ea3adafc57bb63deaaeec
Author: Freja Nordsiek <fnordsie at gmail.com>
Date:   Sun Dec 27 15:20:46 2015 +0100

    Fixed opening mode in loadmat to 'r'.
---
 hdf5storage/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hdf5storage/__init__.py b/hdf5storage/__init__.py
index 7a22e56..b8471ba 100644
--- a/hdf5storage/__init__.py
+++ b/hdf5storage/__init__.py
@@ -1760,7 +1760,7 @@ def loadmat(file_name, mdict=None, appendmat=True,
 
         if variable_names is None:
             data = dict()
-            with h5py.File(filename) as f:
+            with h5py.File(filename, mode='r') as f:
                 for k in f:
                     # Read if not group_for_references. Data that
                     # produces errors when read is dicarded (the OSError

-- 
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