[h5py] 391/455: Fix for 1.6 compatibility
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Thu Jul 2 18:19:53 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to annotated tag 1.3.0
in repository h5py.
commit 5edc1b49aefe89111c92990f44298f8a27897f1d
Author: andrewcollette <andrew.collette at gmail.com>
Date: Mon Feb 8 02:29:33 2010 +0000
Fix for 1.6 compatibility
---
h5py/highlevel.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/h5py/highlevel.py b/h5py/highlevel.py
index fe90d02..78964e0 100644
--- a/h5py/highlevel.py
+++ b/h5py/highlevel.py
@@ -777,7 +777,10 @@ class File(Group):
self.fid = self._generate_fid(name, mode, plist)
self._modes[self] = mode
- gid = h5o.open(self.fid, '/', lapl=self._lapl)
+ if config.API_18:
+ gid = h5o.open(self.fid, '/', lapl=self._lapl)
+ else:
+ gid = h5g.open(self.fid, '/')
Group.__init__(self, None, None, _rawid=gid)
def _generate_access_plist(self, driver, **kwds):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/h5py.git
More information about the debian-science-commits
mailing list