Fix #3866: Suppress a new warning type: python refs

This commit is contained in:
Takeshi KOMIYA 2017-06-17 10:47:35 +09:00
parent cdc5b8d575
commit db88166a3f
3 changed files with 6 additions and 1 deletions

View File

@ -68,6 +68,10 @@ Deprecated
Features added
--------------
* Now :confval:`suppress_warnings` accepts following configurations:
- ``ref.python`` (ref: #3866)
Bugs fixed
----------

View File

@ -239,6 +239,7 @@ General configuration
* ref.citation
* ref.footnote
* ref.doc
* ref.python
* misc.highlighting_failure
* toc.secnum
* epub.unknown_project_files

View File

@ -833,7 +833,7 @@ class PythonDomain(Domain):
elif len(matches) > 1:
logger.warning('more than one target found for cross-reference %r: %s',
target, ', '.join(match[0] for match in matches),
location=node)
type='ref', subtype='python', location=node)
name, obj = matches[0]
if obj[1] == 'module':