File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -94,12 +94,12 @@ def get_location(node, app):
94
94
cannot locate the original source file (usually because an extension
95
95
has injected text into the sphinx parsing engine).
96
96
"""
97
- ( path , line ) = get_source_line (node )
97
+ source , line = get_source_line (node )
98
98
99
- if path :
100
- # sometimes the 'path ' can contain ':' which are forbidden on
101
- # windows, but on posix just passes through.
102
- path , * post = path .partition (':' )
99
+ if source :
100
+ # 'source ' can have the form '/some/path:docstring of some.api' but the
101
+ # colons are forbidden on windows, but on posix just passes through.
102
+ path , * post = source .partition (':' )
103
103
post = '' .join (post )
104
104
# We locate references relative to the parent of the doc
105
105
# directory, which for matplotlib, will be the root of the
You can’t perform that action at this time.
0 commit comments