Skip to content

Commit

Permalink
Fix #7401: Incorrect argument is passed for env-get-outdated handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
tk0miya committed Mar 31, 2020
1 parent ac2987a commit c4c7442
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

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 c4c7442

Please sign in to comment.