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

Commit2f22524

Browse files
committed
Remove explicit empty"" handling in ConfigParser
Because literal `""` is a special case of `"..."` as parsedsince#2035.
1 parent4ebe407 commit2f22524

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

‎git/config.py‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -501,9 +501,6 @@ def string_decode(v: str) -> str:
501501
ifpos!=-1andoptval[pos-1].isspace():
502502
optval=optval[:pos]
503503
optval=optval.strip()
504-
ifoptval=='""':
505-
optval=""
506-
# END handle empty string
507504
optname=self.optionxform(optname.rstrip())
508505
iflen(optval)>1andoptval[0]=='"'andoptval[-1]!='"':
509506
is_multi_line=True

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp