diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2016-12-27 02:13:56 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-01-02 12:59:51 +0900 |
commit | 15b46598e21c05fae6064b8f64e9dd00a73ed9d9 (patch) | |
tree | 0b60c8a3e387ad34ee1460893cdf2532ddee9e91 /sphinx/domains/python.py | |
parent | e755a8c004291faa27e511205d2c365e8461bf9f (diff) | |
download | sphinx-git-15b46598e21c05fae6064b8f64e9dd00a73ed9d9.tar.gz |
logger.warning() supports node as location parameter
Diffstat (limited to 'sphinx/domains/python.py')
-rw-r--r-- | sphinx/domains/python.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sphinx/domains/python.py b/sphinx/domains/python.py index 1da874ea2..886b1f863 100644 --- a/sphinx/domains/python.py +++ b/sphinx/domains/python.py @@ -787,10 +787,9 @@ class PythonDomain(Domain): if not matches: return None elif len(matches) > 1: - logger.warn_node( - 'more than one target found for cross-reference ' - '%r: %s' % (target, ', '.join(match[0] for match in matches)), - node) + logger.warning('more than one target found for cross-reference %r: %s', + target, ', '.join(match[0] for match in matches), + location=node) name, obj = matches[0] if obj[1] == 'module': |