[pyfai] 04/04: do not use deprecated sphinx pngmath extension

Frédéric-Emmanuel Picca picca at moszumanska.debian.org
Wed Aug 17 17:18:42 UTC 2016


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

picca pushed a commit to branch patch-queue/master
in repository pyfai.

commit 9496657a1dcb3a0530bb162cf4fb792300ca45e9
Author: Picca Frédéric-Emmanuel <picca at debian.org>
Date:   Wed Aug 17 15:30:06 2016 +0200

    do not use deprecated sphinx pngmath extension
---
 doc/source/conf.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/doc/source/conf.py b/doc/source/conf.py
index b9945e6..4f60d42 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -40,7 +40,6 @@ except:
 extensions = [
     'sphinx.ext.autodoc',
     'sphinx.ext.todo',
-    'sphinx.ext.pngmath',
     'sphinxcontrib.programoutput',
     'sphinx.ext.mathjax'
 ]
@@ -274,7 +273,7 @@ re_field = re.compile('@(param|type|rtype|return)')
 
 
 def fix_docstring(app, what, name, obj, options, lines):
-    for i in xrange(len(lines)):
+    for i in range(len(lines)):
         lines[i] = re_field.sub(r':\1', lines[i])
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pyfai.git



More information about the debian-science-commits mailing list