I need to specify a password on the right side of the equals sign in a python configparser file, but semicolon is the comment character.
Escaping with \ does not work.
How can I pass the string "foo;" as a value in configparser?
I need to specify a password on the right side of the equals sign in a python configparser file, but semicolon is the comment character.
Escaping with \ does not work.
How can I pass the string "foo;" as a value in configparser?
ConfigParser seems to have a bug with spaces in front of semicolons:
Note that the last version is still incorrect, because the escape backslash is still in there...
A short interactive session shows the semicolon is read without trouble.
Mine works fine. And noticed "Lines beginning with '#' or ';' are ignored and may be used to provide comments. "