New submission from jiangjinhu :
By the write funtion of ConfigParser.py,the partial content of the configue
will change.
--
components: Library (Lib)
messages: 310168
nosy: jiangjinhu666
priority: normal
severity: normal
status: open
title: A bug of the write funtion of
jiangjinhu added the comment:
def write(self, fp):
"""Write an .ini-format representation of the configuration state."""
if self._defaults:
fp.write("[%s]\n" % DEFAULTSECT)
for (key, value) in self._defaults.item
jiangjinhu added the comment:
The configure file "test.ini":
[section_a]
addr = "127.0.0.1"
password = ""
Change the value of addr by the "test.py":
import ConfigParser
tmpfile = "test.ini"
conf = ConfigParser.ConfigParser()
conf.read(t
jiangjinhu added the comment:
But accidentally,with the "password = "" " in the configure files ,which are
called by my services, the service will start successfully,and with "password =
",the services can not.On the other hand ,I just set the option "