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

Appearance settings

Commit 8a4d9f4

Browse filesBrowse files
committed
Remove explicit "" handling in ConfigParser
Because `""` is a special case of `"..."` as parsed since #2035.
1 parent 4ebe407 commit 8a4d9f4
Copy full SHA for 8a4d9f4

1 file changed

-3Lines changed: 0 additions & 3 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎git/config.py‎

Copy file name to clipboardExpand all lines: git/config.py
-3Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -501,9 +501,6 @@ def string_decode(v: str) -> str:
501501
if pos != -1 and optval[pos - 1].isspace():
502502
optval = optval[:pos]
503503
optval = optval.strip()
504-
if optval == '""':
505-
optval = ""
506-
# END handle empty string
507504
optname = self.optionxform(optname.rstrip())
508505
if len(optval) > 1 and optval[0] == '"' and optval[-1] != '"':
509506
is_multi_line = True

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.