| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -501,9 +501,6 @@ def string_decode(v: str) -> str: | |||
| 501 | 501 | if pos != -1 and optval[pos - 1].isspace(): | |
| 502 | 502 | optval = optval[:pos] | |
| 503 | 503 | optval = optval.strip() | |
| 504 | - if optval == '""': | ||
| 505 | - optval = "" | ||
| 506 | - # END handle empty string | ||
| 507 | 504 | optname = self.optionxform(optname.rstrip()) | |
| 508 | 505 | if len(optval) > 1 and optval[0] == '"' and optval[-1] != '"': | |
| 509 | 506 | is_multi_line = True | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,2 @@ | |||
| 1 | + [core] | ||
| 2 | + filemode = "" | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -416,6 +416,10 @@ def test_config_with_quotes(self): | |||
| 416 | 416 | self.assertEqual(cr.get("user", "name"), "Cody Veal") | |
| 417 | 417 | self.assertEqual(cr.get("user", "email"), "cveal05@gmail.com") | |
| 418 | 418 | ||
| 419 | + def test_config_with_empty_quotes(self): | ||
| 420 | + cr = GitConfigParser(fixture_path("git_config_with_empty_quotes"), read_only=True) | ||
| 421 | + self.assertEqual(cr.get("core", "filemode"), "", "quotes can form a literal empty string as value") | ||
| 422 | + | ||
| 419 | 423 | def test_config_with_quotes_with_literal_whitespace(self): | |
| 420 | 424 | cr = GitConfigParser(fixture_path("git_config_with_quotes_whitespace_inside"), read_only=True) | |
| 421 | 425 | self.assertEqual(cr.get("core", "commentString"), "# ") | |
| Back | FazBrowse Home | New Git URL |
0 commit comments