summaryrefslogtreecommitdiff
path: root/sphinx/domains/javascript.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-09-23 11:03:23 +0200
committerGeorg Brandl <georg@python.org>2011-09-23 11:03:23 +0200
commit4abbe95a9c6b82ec644ea7fc81fd0198edf7831e (patch)
tree370b12cba4f2d19a7405c4efef31c408108def8f /sphinx/domains/javascript.py
parent25d41d8ed10aed0d8f497679f7426cecb429ac20 (diff)
parent69f7e0768114fde9ccabc4bf7d56f765743612a6 (diff)
downloadsphinx-git-4abbe95a9c6b82ec644ea7fc81fd0198edf7831e.tar.gz
Merge with 1.0
Diffstat (limited to 'sphinx/domains/javascript.py')
-rw-r--r--sphinx/domains/javascript.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/sphinx/domains/javascript.py b/sphinx/domains/javascript.py
index 09d555add..a6f4e87cc 100644
--- a/sphinx/domains/javascript.py
+++ b/sphinx/domains/javascript.py
@@ -86,12 +86,11 @@ class JSObject(ObjectDescription):
self.state.document.note_explicit_target(signode)
objects = self.env.domaindata['js']['objects']
if fullname in objects:
- self.env.warn(
- self.env.docname,
+ self.state_machine.reporter.warning(
'duplicate object description of %s, ' % fullname +
'other instance in ' +
self.env.doc2path(objects[fullname][0]),
- self.lineno)
+ line=self.lineno)
objects[fullname] = self.env.docname, self.objtype
indextext = self.get_index_text(objectname, name_obj)