Fix: rebuilding cause crash unexpectedly when source files were added. The problem appeared at fffbcba0b.

This commit is contained in:
Takayuki Shimizukawa 2014-11-25 10:20:10 +09:00
parent fa9fef3632
commit c5c913ed4a
3 changed files with 2 additions and 2 deletions

View File

@ -16,6 +16,7 @@ Bugs fixed
* PR#311: sphinx-quickstart does not work on python 3.4. * PR#311: sphinx-quickstart does not work on python 3.4.
* Fix :confval:`autodoc_docstring_signature` not working with signatures * Fix :confval:`autodoc_docstring_signature` not working with signatures
in class docstrings. in class docstrings.
* Rebuilding cause crash unexpectedly when source files were added.
Release 1.3b1 (released Oct 10, 2014) Release 1.3b1 (released Oct 10, 2014)

View File

@ -244,7 +244,6 @@ class Builder(object):
if summary: if summary:
self.info(bold('building [%s]' % self.name) + ': ' + summary) self.info(bold('building [%s]' % self.name) + ': ' + summary)
updated_docnames = set()
# while reading, collect all warnings from docutils # while reading, collect all warnings from docutils
warnings = [] warnings = []
self.env.set_warnfunc(lambda *args: warnings.append(args)) self.env.set_warnfunc(lambda *args: warnings.append(args))

View File

@ -590,7 +590,7 @@ class BuildEnvironment:
self.app = None self.app = None
app.emit('env-updated', self) app.emit('env-updated', self)
return docnames return set(docnames)
def _read_serial(self, docnames, app): def _read_serial(self, docnames, app):
for docname in app.status_iterator(docnames, 'reading sources... ', for docname in app.status_iterator(docnames, 'reading sources... ',