mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
#515: Fix tracebacks in the viewcode extension for Python objects that do not have a valid signature.
This commit is contained in:
parent
eb014a1b64
commit
cc8271486b
3
CHANGES
3
CHANGES
@ -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.
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user