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

Commitfc59e5e

Browse files
committed
Improve stream_object_data and _parse_object_header docstrings
This slightly adjusts working and formatting of these methods ofthe Git class, for clarity.
1 parentc0a27c0 commitfc59e5e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎git/cmd.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,7 +1491,9 @@ def _call_process(
14911491
def_parse_object_header(self,header_line:str)->Tuple[str,str,int]:
14921492
"""
14931493
:param header_line:
1494-
<hex_sha> type_string size_as_int
1494+
A line of the form::
1495+
1496+
<hex_sha> type_string size_as_int
14951497
14961498
:return:
14971499
(hex_sha, type_string, size_as_int)
@@ -1581,7 +1583,7 @@ def get_object_data(self, ref: str) -> Tuple[str, str, int, bytes]:
15811583
return (hexsha,typename,size,data)
15821584

15831585
defstream_object_data(self,ref:str)->Tuple[str,str,int,"Git.CatFileContentStream"]:
1584-
"""Similar to :meth:`get_object_header`, but returns the data as a stream.
1586+
"""Similar to :meth:`get_object_data`, but returns the data as a stream.
15851587
15861588
:return:
15871589
(hexsha, type_string, size_as_int, stream)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp