Skip to content

Commit

Permalink
Merge pull request #3869 from tk0miya/3866_suppress_pydomain_ref_warning
Browse files Browse the repository at this point in the history
Fix #3866: suppress pydomain ref warning
  • Loading branch information
tk0miya authored Jul 17, 2017
2 parents 9678cf7 + d65c5c4 commit ad00155
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ Deprecated
Features added
--------------

* Now :confval:`suppress_warnings` accepts following configurations:

- ``ref.python`` (ref: #3866)

Bugs fixed
----------

Expand Down
1 change: 1 addition & 0 deletions doc/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ General configuration
* ref.citation
* ref.footnote
* ref.doc
* ref.python
* misc.highlighting_failure
* toc.secnum
* epub.unknown_project_files
Expand Down
2 changes: 1 addition & 1 deletion sphinx/domains/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ def resolve_xref(self, env, fromdocname, builder,
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':
Expand Down

0 comments on commit ad00155

Please sign in to comment.