Now sphinx.ext.autodoc work with python-2.5 again.

This commit is contained in:
Takayuki Shimizukawa committed 2014-09-26 01:00:47 +09:00
1 parent 7060116888
commit b897be5122
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -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.
+1 -1
View File
@@ -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)