mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-16 10:22:13 -05:00
Now sphinx.ext.autodoc work with python-2.5 again.
This commit is contained in:
1 parent
7060116888
commit
b897be5122
2 files changed
+2
-1
No files matched your search
@@ -9,6 +9,7 @@ Features added
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* Now sphinx.ext.autodoc work with python-2.5 again.
|
||||
* #1563: :meth:`~sphinx.application.Sphinx.add_search_language` raises
|
||||
AssertionError for correct type of argument. Thanks to rikoman.
|
||||
* #1568: fix a crash when a "centered" directive contains a reference.
|
||||
|
||||
@@ -347,7 +347,7 @@ class Documenter(object):
|
||||
return True
|
||||
# this used to only catch SyntaxError, ImportError and AttributeError,
|
||||
# but importing modules with side effects can raise all kinds of errors
|
||||
except (Exception, SystemExit) as e:
|
||||
except (Exception, SystemExit), e:
|
||||
if self.objpath:
|
||||
errmsg = 'autodoc: failed to import %s %r from module %r' % \
|
||||
(self.objtype, '.'.join(self.objpath), self.modname)
|
||||
|
||||
Reference in new issue
Block a user