Skip to content

Commit 2f22524

Browse files
committed
Remove explicit empty "" handling in ConfigParser
Because literal `""` is a special case of `"..."` as parsed since gitpython-developers#2035.
1 parent 4ebe407 commit 2f22524

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
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy