Skip to content

Commit

Permalink
Merge pull request #7402 from tk0miya/7401_broken_env-get-outdated
Browse files Browse the repository at this point in the history
Fix #7401: Incorrect argument is passed for env-get-outdated handlers
  • Loading branch information
tk0miya authored Apr 2, 2020
2 parents 1d299d3 + e89787d commit aa1f7fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Bugs fixed
* #7301: capital characters are not allowed for node_id
* #7301: epub: duplicated node_ids are generated
* #6564: html: a width of table was ignored on HTML builder
* #7401: Incorrect argument is passed for :event:`env-get-outdated` handlers
* #7355: autodoc: a signature of cython-function is not recognized well

Testing
Expand Down
2 changes: 1 addition & 1 deletion sphinx/builders/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def read(self) -> List[str]:
added, changed, removed = self.env.get_outdated_files(updated)

# 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)

# if files were added or removed, all documents with globbed toctrees
Expand Down

0 comments on commit aa1f7fb

Please sign in to comment.