Open anoteng opened 2 years ago
The issue seems related to python2 syntax in sphinx/config.py The changes below seems to fix the issue:
--- a/sphinx/conf.py +++ b/sphinx/conf.py @@ -273,8 +273,8 @@ def suppress_module_docstring(app, what, name, obj, options, lines): if what == 'module': - print len(lines) - for i in xrange(len(lines)): + print(len(lines)) + for i in range(len(lines)): del lines[-1] pass @@ -282,9 +282,9 @@ if what == 'function': lines.insert(0,'.. py:function:: freddy') # Not needed lines.insert(1,'') - print lines[0] - print obj - print options + print(lines[0]) + print(obj) + print(options) def setup(app):
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=997777
The issue seems related to python2 syntax in sphinx/config.py The changes below seems to fix the issue: