From c4c744273c1c1d6166fb0a49f6e1f72019d02a9d Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Tue, 31 Mar 2020 20:28:21 +0900 Subject: [PATCH] Fix #7401: Incorrect argument is passed for env-get-outdated handlers --- CHANGES | 1 + sphinx/builders/__init__.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 9c60620eb06..8bcb1206e21 100644 --- a/CHANGES +++ b/CHANGES @@ -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 -------- diff --git a/sphinx/builders/__init__.py b/sphinx/builders/__init__.py index c596df3c59c..93c246c69b1 100644 --- a/sphinx/builders/__init__.py +++ b/sphinx/builders/__init__.py @@ -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