Skip to content

Commit 3958747

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 a separate type from str in Python 3, where instead str and bytes are different types.)
1 parent ba878ef commit 3958747

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy