Closed joeydumont closed 1 year ago
I appreciate there was a MR for this, and apologies for asking a question about this after 2.5 years, but I want to understand your expected values.
I'm tracking this as "I want a specific string value for pre_install_args
and it shouldn't have any quotes in the final value"
I'd have expected that to be accomplished by:
config['pre_install_args'] = "each word is an argument"
(note only one set of quotes)
Am I misunderstanding the use case?
I am slightly concerned that the updated code:
Re-reading this 2.5 years, I realize that my explanation wasn't that great. In any case, I've sinced refactored that code away from my application. Given your concerns, I think it's best to close both this issue and the associated pull request.
I have an app that expects a value to be in the format:
I tried writing
but this results in
after calling
ConfigObj.write()
.To fix the issue, I've modified
ConfigObj._get_single_quote(self, value)
toNote the two new
re.match
branches in the conditional. Works for my needs, but does that make sense in general?