summaryrefslogtreecommitdiff
path: root/sphinx/ext/autodoc.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-01-03 15:55:56 +0100
committerGeorg Brandl <georg@python.org>2011-01-03 15:55:56 +0100
commit6c7aa8bb6d4b4b1867195d03d12006cd6d72d898 (patch)
tree932d5122c258e20ec6dfb0bb58edfa458e6020f9 /sphinx/ext/autodoc.py
parent7fe2f8ca5b1e33c6e542c295bcbe435de0774d02 (diff)
parent69e5b91b2daa147e01fe4f497086639dc69f392b (diff)
downloadsphinx-git-6c7aa8bb6d4b4b1867195d03d12006cd6d72d898.tar.gz
merge with 1.0
Diffstat (limited to 'sphinx/ext/autodoc.py')
-rw-r--r--sphinx/ext/autodoc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/ext/autodoc.py b/sphinx/ext/autodoc.py
index 696e5f1d0..3b378001f 100644
--- a/sphinx/ext/autodoc.py
+++ b/sphinx/ext/autodoc.py
@@ -103,7 +103,7 @@ class AutodocReporter(object):
return getattr(self.reporter, name)
def system_message(self, level, message, *children, **kwargs):
- if 'line' in kwargs:
+ if 'line' in kwargs and 'source' not in kwargs:
try:
source, line = self.viewlist.items[kwargs['line']]
except IndexError:
@@ -681,7 +681,7 @@ class Documenter(object):
# make sure that the result starts with an empty line. This is
# necessary for some situations where another directive preprocesses
# reST and no starting newline is present
- self.add_line(u'', '')
+ self.add_line(u'', '<autodoc>')
# format the object's signature, if any
sig = self.format_signature()