Fix #7401: Incorrect argument is passed for env-get-outdated handlers

This commit is contained in:
Takeshi KOMIYA 2020-03-31 20:28:21 +09:00
parent ac2987a7d3
commit c4c744273c
2 changed files with 2 additions and 1 deletions

View File

@ -31,6 +31,7 @@ Bugs fixed
* #7301: capital characters are not allowed for node_id * #7301: capital characters are not allowed for node_id
* #7301: epub: duplicated node_ids are generated * #7301: epub: duplicated node_ids are generated
* #6564: html: a width of table was ignored on HTML builder * #6564: html: a width of table was ignored on HTML builder
* #7401: Incorrect argument is passed for :event:`env-get-outdated` handlers
Testing Testing
-------- --------

View File

@ -379,7 +379,7 @@ class Builder:
added, changed, removed = self.env.get_outdated_files(updated) added, changed, removed = self.env.get_outdated_files(updated)
# allow user intervention as well # allow user intervention as well
for docs in self.events.emit('env-get-outdated', self, added, changed, removed): for docs in self.events.emit('env-get-outdated', self.env, added, changed, removed):
changed.update(set(docs) & self.env.found_docs) changed.update(set(docs) & self.env.found_docs)
# if files were added or removed, all documents with globbed toctrees # if files were added or removed, all documents with globbed toctrees