[h5py] 11/26: Fix bytes coercion issue caused by Cython 0.13

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Jul 2 18:20:17 UTC 2015


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

ghisvail-guest pushed a commit to annotated tag 1.3.1
in repository h5py.

commit b73c62d21b0bd8afaae2a61a1d4aedd3ba83c6ad
Author: andrewcollette <andrew.collette at gmail.com>
Date:   Sun Sep 26 03:35:36 2010 +0000

    Fix bytes coercion issue caused by Cython 0.13
---
 h5py/h5a.pyx | 2 +-
 h5py/h5t.pyx | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/h5py/h5a.pyx b/h5py/h5a.pyx
index 8a4553a..48b04c3 100644
--- a/h5py/h5a.pyx
+++ b/h5py/h5a.pyx
@@ -496,7 +496,7 @@ cdef class AttrID(ObjectID):
             assert blen >= 0
             buf = <char*>emalloc(sizeof(char)*blen+1)
             blen = H5Aget_name(self.id, blen+1, buf)
-            strout = buf
+            strout = <bytes>buf
         finally:
             efree(buf)
 
diff --git a/h5py/h5t.pyx b/h5py/h5t.pyx
index 632fe37..ce40813 100644
--- a/h5py/h5t.pyx
+++ b/h5py/h5t.pyx
@@ -925,7 +925,7 @@ cdef class TypeCompositeID(TypeID):
         try:
             name = H5Tget_member_name(self.id, member)
             assert name != NULL
-            pyname = name
+            pyname = <bytes>name
         finally:
             free(name)
 

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