[h5py] 03/38: make automod work with Py3 version of sphinbuild

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


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

ghisvail-guest pushed a commit to branch master
in repository h5py.

commit 9601a54fdc43f9cab307110964e7d377ee0dc818
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Tue Apr 14 11:58:12 2015 +0100

    make automod work with Py3 version of sphinbuild
---
 docs_api/automod.py | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/docs_api/automod.py b/docs_api/automod.py
index 0fb4839..3d2ec2c 100644
--- a/docs_api/automod.py
+++ b/docs_api/automod.py
@@ -48,9 +48,15 @@ class_exprs = { "ObjectID": "h5py.h5.ObjectID",
                 "[Gg]roup creation property list": "h5py.h5p.PropGCID"}
 
 
-class_exprs = dict( 
-    (re.compile(class_base % x.replace(" ",r"\s"), re.VERBOSE), y) \
-    for x, y in class_exprs.iteritems() )
+try:
+    class_exprs = dict( 
+        (re.compile(class_base % x.replace(" ",r"\s"), re.VERBOSE), y) \
+        for x, y in class_exprs.iteritems() )
+except AttributeError:
+    class_exprs = dict( 
+        (re.compile(class_base % x.replace(" ",r"\s"), re.VERBOSE), y) \
+        for x, y in class_exprs.items() )
+
 
 def replace_class(istr):
 

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