According to the documentation:
The configuration file consists of
sections, led by a [section] header
and followed by name: value entries,
with continuations in the style of RFC
822 (see section 3.1.1, “LONG HEADER
FIELDS”); name=value is also accepted.
Python Docs
However, writing a config file always use the equal sign (=). Is there any option to use the colon sign (:)?
Thanks in advance.
H
If you look at the code defining the
RawConfigParser.writemethod insideConfigParser.pyyou’ll see that the equal signs are hard-coded. So to change the behavior you could subclass the ConfigParser you wish to use:yields: