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

Commit1a0ab5b

Browse files
authored
Use endswith() for more clarity
1 parentc2283f6 commit1a0ab5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎git/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ def _read(self, fp: Union[BufferedReader, IO[bytes]], fpname: str) -> None:
452452
e=None# None, or an exception.
453453

454454
defstring_decode(v:str)->str:
455-
ifvandv[-1]=="\\":
455+
ifvandv.endswith("\\"):
456456
v=v[:-1]
457457
# END cut trailing escapes to prevent decode error
458458

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp