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

Commit1d3f275

Browse files
committed
Avoid making "END" notation more verbose
This changes the style "END" comments appearing after localfunction definitions from "END def X" to "END X".Note that this still does not add such comments where they were notpresent, it only adjusts their style where they already existed.
1 parentddb4417 commit1d3f275

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

‎git/cmd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,7 @@ def kill_process(pid: int) -> None:
10481048
pass
10491049
return
10501050

1051-
# ENDdefkill_process
1051+
# END kill_process
10521052

10531053
ifkill_after_timeoutisnotNone:
10541054
kill_check=threading.Event()
@@ -1100,7 +1100,7 @@ def kill_process(pid: int) -> None:
11001100
defas_text(stdout_value:Union[bytes,str])->str:
11011101
returnnotoutput_streamandsafe_decode(stdout_value)or"<OUTPUT_STREAM>"
11021102

1103-
# ENDdefas_text
1103+
# END as_text
11041104

11051105
ifstderr_value:
11061106
log.info(

‎git/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ def string_decode(v: str) -> str:
450450

451451
returnv.encode(defenc).decode("unicode_escape")
452452

453-
# ENDdefstring_decode
453+
# END string_decode
454454

455455
whileTrue:
456456
# We assume to read binary!

‎git/index/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -868,6 +868,7 @@ def handle_null_entries(self: "IndexFile") -> None:
868868
# END for each entry index
869869

870870
# END closure
871+
871872
handle_null_entries(self)
872873
# END null_entry handling
873874

‎git/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ def new_message_handler(self) -> Callable[[str], None]:
668668
defhandler(line:AnyStr)->None:
669669
returnself._parse_progress_line(line.rstrip())
670670

671-
# ENDdefhandler
671+
# END handler
672672

673673
returnhandler
674674

‎test/test_submodule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ def assert_exists(sm, value=True):
839839
assertsm.exists()==value
840840
assertsm.module_exists()==value
841841

842-
# ENDdefassert_exists
842+
# END assert_exists
843843

844844
# As git is backwards compatible itself, it would still recognize what we do here... unless we really
845845
# muss it up. That's the only reason why the test is still here...

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp