Add tests of ConfigParser with `"..."` with `"` or `\` inside · gitpython-developers/GitPython@7bcea08 · GitHub
Skip to content

Commit 7bcea08

Browse files
committed
Add tests of ConfigParser with "..." with " or \ inside
These are cases where just removing the outer quotes without doing anything to the text inside does not give the correct result, and where keeping the quotes may be preferable, in that it was the long-standing behavior of `GitConfigParser`. That this was the long-standing behavior may justify bringing it back when the `"`-`"`-enclosed text contains such characters, but it does not justify preserving it indefinitely: it will still be better to parse the escape sequences, at least in the type case that all of them in a value's representation are well-formed.
1 parent c8e4aa0 commit 7bcea08

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions

test/test_config.py

Lines changed: 20 additions & 0 deletions

0 commit comments

Comments
 (0)