Fix IndexObject.abspath docstring formatting · gitpython-developers/GitPython@5219489 · GitHub
Skip to content

Commit 5219489

Browse files
committed
Fix IndexObject.abspath docstring formatting
The original problem where the backslash wasn't included in the docstring at all was fixed in 7dd2095 (#1725), but the backslash still did not appear in rendered Sphinx documentation, because it was also treated as a reStructuredText metacharacter. Although that can be addressed by adding a further backslash to escape it, the effect is ambiguous when the docstring is read in the code. So this just encloses it in a double-backticked code span instead, which is a somewhat clearer way to show it anyway.
1 parent 115451d commit 5219489

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

git/objects/base.py

Lines changed: 2 additions & 1 deletion

0 commit comments

Comments
 (0)