@@ -106,7 +106,7 @@ def handle_process_output(
106106 decode_streams : bool = True ,
107107 kill_after_timeout : Union [None , float ] = None ,
108108) -> None :
109- """Register for notifications to learn that process output is ready to read, and
109+ R """Register for notifications to learn that process output is ready to read, and
110110 dispatch lines to the respective line handlers.
111111
112112 This function returns once the finalizer returns.
@@ -126,8 +126,11 @@ def handle_process_output(
126126 :param decode_streams:
127127 Assume stdout/stderr streams are binary and decode them before pushing their
128128 contents to handlers.
129- Set this to ``False`` if ``universal_newlines == True`` (then streams are in
130- text mode) or if decoding must happen later (i.e. for :class:`~git.diff.Diff`s).
129+
130+ This defaults to ``True``. Set it to ``False``:
131+
132+ - if ``universal_newlines == True``, as then streams are in text mode, or
133+ - if decoding must happen later, such as for :class:`~git.diff.Diff`\s.
131134
132135 :param kill_after_timeout:
133136 :class:`float` or ``None``, Default = ``None``
@@ -379,15 +382,14 @@ def __setstate__(self, d: Dict[str, Any]) -> None:
379382
380383 :note:
381384 The git executable is actually found during the refresh step in the top level
382- :mod:`__init__`. It can also be changed by explicitly calling
383- :func:`git.refresh`.
385+ ``__init__``. It can also be changed by explicitly calling :func:`git.refresh`.
384386 """
385387
386388 _refresh_token = object () # Since None would match an initial _version_info_token.
387389
388390 @classmethod
389391 def refresh (cls , path : Union [None , PathLike ] = None ) -> bool :
390- """This gets called by the refresh function (see the top level __init__).
392+ """This gets called by the refresh function (see the top level `` __init__`` ).
391393
392394 :param path:
393395 Optional path to the git executable. If not absolute, it is resolved
@@ -868,8 +870,7 @@ def __init__(self, working_dir: Union[None, PathLike] = None):
868870 self .cat_file_all : Union [None , TBD ] = None
869871
870872 def __getattr__ (self , name : str ) -> Any :
871- """A convenience method as it allows to call the command as if it was
872- an object.
873+ """A convenience method as it allows to call the command as if it was an object.
873874
874875 :return:
875876 Callable object that will execute call :meth:`_call_process` with your
@@ -899,7 +900,7 @@ def working_dir(self) -> Union[None, PathLike]:
899900 @property
900901 def version_info (self ) -> Tuple [int , ...]:
901902 """
902- :return: tuple with integers representing the major, minor and additional
903+ :return: Tuple with integers representing the major, minor and additional
903904 version numbers as parsed from ``git version``. Up to four fields are used.
904905
905906 This value is generated on demand and is cached.
@@ -1021,7 +1022,7 @@ def execute(
10211022 :param output_stream:
10221023 If set to a file-like object, data produced by the git command will be
10231024 copied to the given stream instead of being returned as a string.
1024- This feature only has any effect if `as_process` is False.
1025+ This feature only has any effect if `as_process` is `` False`` .
10251026
10261027 :param stdout_as_string:
10271028 If ``False``, the command's standard output will be bytes. Otherwise, it
@@ -1030,10 +1031,10 @@ def execute(
10301031
10311032 :param kill_after_timeout:
10321033 Specifies a timeout in seconds for the git command, after which the process
1033- should be killed. This will have no effect if `as_process` is set to True.
1034- It is set to None by default and will let the process run until the timeout
1035- is explicitly specified. Uses of this feature should be carefully
1036- considered, due to the following limitations:
1034+ should be killed. This will have no effect if `as_process` is set to
1035+ ``True``. It is set to `` None`` by default and will let the process run
1036+ until the timeout is explicitly specified. Uses of this feature should be
1037+ carefully considered, due to the following limitations:
10371038
10381039 1. This feature is not supported at all on Windows.
10391040 2. Effectiveness may vary by operating system. ``ps --ppid`` is used to
@@ -1099,7 +1100,7 @@ def execute(
10991100
11001101 :note:
11011102 If you add additional keyword arguments to the signature of this method,
1102- you must update the execute_kwargs tuple housed in this module.
1103+ you must update the `` execute_kwargs`` variable housed in this module.
11031104 """
11041105 # Remove password for the command if present.
11051106 redacted_command = remove_password_if_present (command )
@@ -1420,9 +1421,10 @@ def _call_process(
14201421 :param kwargs:
14211422 Contains key-values for the following:
14221423
1423- - The :meth:`execute()` kwds, as listed in :var:` execute_kwargs`.
1424+ - The :meth:`execute()` kwds, as listed in `` execute_kwargs` `.
14241425 - "Command options" to be converted by :meth:`transform_kwargs`.
1425- - The ``insert_kwargs_after`` key which its value must match one of ``*args``.
1426+ - The ``insert_kwargs_after`` key which its value must match one of
1427+ ``*args``.
14261428
14271429 It also contains any command options, to be appended after the matched arg.
14281430
0 commit comments