From 51f7d351a141a623efd06f2682d90ce8aad412e4 Mon Sep 17 00:00:00 2001 From: Shingo Kitagawa Date: Mon, 23 Apr 2018 17:21:02 +0900 Subject: [PATCH] fix issue #4885 https://github.com/sphinx-doc/sphinx/issues/4885 --- sphinx/domains/python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/domains/python.py b/sphinx/domains/python.py index 47ab5cd12..25c83244c 100644 --- a/sphinx/domains/python.py +++ b/sphinx/domains/python.py @@ -565,7 +565,7 @@ class PyModule(Directive): self.state_machine.reporter.warning( 'duplicate module description of %s, ' 'other instance in %s, use :noindex: for one of them' % - (modname, self.env.doc2path(modules[modname])), + (modname, env.doc2path(modules[modname][0])), line=self.lineno) modules[modname] = (env.docname, self.options.get('synopsis', ''),