[python-hdf5storage] 31/84: Added comment to the h5py.__version__ grab and set to 2.0 if not available to explain its presence.

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


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

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

commit b161b782fbbabd7df962e69403ca7340e5a2158c
Author: Freja Nordsiek <fnordsie at gmail.com>
Date:   Mon Feb 2 22:30:24 2015 -0500

    Added comment to the h5py.__version__ grab and set to 2.0 if not available to explain its presence.
---
 hdf5storage/Marshallers.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/hdf5storage/Marshallers.py b/hdf5storage/Marshallers.py
index 0b41f1b..c14b00c 100644
--- a/hdf5storage/Marshallers.py
+++ b/hdf5storage/Marshallers.py
@@ -41,11 +41,14 @@ from hdf5storage import lowlevel
 from hdf5storage.lowlevel import write_data, read_data
 
 
+# Ubuntu 12.04's h5py doesn't have __version__ set so we need to try to
+# grab the version and if it isn't available, just assume it is 2.0.
 try:
     H5PY_VERSION = h5py.__version__
 except:
     H5PY_VERSION = '2.0'
 
+
 def write_object_array(f, data, options):
     """ Writes an array of objects recursively.
 

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