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

Commit3958747

Browse files
committed
Update CommandError._msg documentation
This converts it from a specially formatted comment to a docstring(#1734), rewords for clarity, and removes the mention of unicode,which appears to have been referring to the data type.(GitPython no longer supports Python 2, and unicode is not aseparate type from str in Python 3, where instead str and bytesare different types.)
1 parentba878ef commit3958747

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

‎git/exc.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,13 @@ class CommandError(GitError):
8787
A non-empty list of argv comprising the command-line.
8888
"""
8989

90-
#: A unicode print-format with 2 `%s for `<cmdline>` and the rest,
91-
#: e.g.
92-
#: "'%s' failed%s"
9390
_msg="Cmd('%s') failed%s"
91+
"""Format string with 2 ``%s`` for ``<cmdline>`` and the rest.
92+
93+
For example: ``"'%s' failed%s"``
94+
95+
Subclasses may override this attribute, provided it is still in this form.
96+
"""
9497

9598
def__init__(
9699
self,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp