#515: Fix tracebacks in the viewcode extension for Python objects that do not have a valid signature.

This commit is contained in:
Georg Brandl 2011-01-03 19:34:21 +01:00
parent eb014a1b64
commit cc8271486b
2 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,9 @@
Release 1.0.6 (in development)
==============================
* #515: Fix tracebacks in the viewcode extension for Python objects
that do not have a valid signature.
* Fix strange reportings of line numbers for warnings generated from
autodoc-included docstrings, due to different behavior depending
on docutils version.

View File

@ -47,10 +47,10 @@ def doctree_read(app, doctree):
for signode in objnode:
if not isinstance(signode, addnodes.desc_signature):
continue
modname = signode['module']
modname = signode.get('module')
if not modname:
continue
fullname = signode['fullname']
fullname = signode.get('fullname')
if not has_tag(modname, fullname, env.docname):
continue
if fullname in names: