summaryrefslogtreecommitdiff
path: root/sphinx/domains/python.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2016-12-27 02:13:56 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2017-01-02 12:59:51 +0900
commit15b46598e21c05fae6064b8f64e9dd00a73ed9d9 (patch)
tree0b60c8a3e387ad34ee1460893cdf2532ddee9e91 /sphinx/domains/python.py
parente755a8c004291faa27e511205d2c365e8461bf9f (diff)
downloadsphinx-git-15b46598e21c05fae6064b8f64e9dd00a73ed9d9.tar.gz
logger.warning() supports node as location parameter
Diffstat (limited to 'sphinx/domains/python.py')
-rw-r--r--sphinx/domains/python.py7
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':