Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Clarify unnecessary special handling for colons in paths.#15050

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
timhoffm merged 1 commit intomatplotlib:masterfromanntzer:colons
Aug 13, 2019
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletionsdoc/sphinxext/missing_references.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -94,12 +94,12 @@ def get_location(node, app):
cannot locate the original source file (usually because an extension
has injected text into the sphinx parsing engine).
"""
(path, line) = get_source_line(node)
source, line = get_source_line(node)

ifpath:
#sometimes the 'path' cancontain ':' which are forbidden on
# windows, but on posix just passes through.
path, *post =path.partition(':')
ifsource:
#'source' canhave the form '/some/path:docstring of some.api' but the
#colons are forbidden onwindows, but on posix just passes through.
path, *post =source.partition(':')
post = ''.join(post)
# We locate references relative to the parent of the doc
# directory, which for matplotlib, will be the root of the
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp