[Python-checkins] CVS: python/dist/src/Lib ConfigParser.py,1.38,1.38.10.1
Michael Hudson
mwh@users.sourceforge.net
Fri, 15 Mar 2002 02:24:16 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv30593
Modified Files:
Tag: release22-maint
ConfigParser.py
Log Message:
I presume this should go here.
backport akuchling's checkin of
revision 1.39 of ConfigParser.py
[Bug #523301] ConfigParser.write() produces broken output for values that
were originally rfc822-like line continuations.
Modified version of a patch from Matthias Ralfs.
Index: ConfigParser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/ConfigParser.py,v
retrieving revision 1.38
retrieving revision 1.38.10.1
diff -C2 -d -r1.38 -r1.38.10.1
*** ConfigParser.py 18 Oct 2001 21:57:37 -0000 1.38
--- ConfigParser.py 15 Mar 2002 10:24:14 -0000 1.38.10.1
***************
*** 345,349 ****
fp.write("[DEFAULT]\n")
for (key, value) in self.__defaults.items():
! fp.write("%s = %s\n" % (key, value))
fp.write("\n")
for section in self.sections():
--- 345,349 ----
fp.write("[DEFAULT]\n")
for (key, value) in self.__defaults.items():
! fp.write("%s = %s\n" % (key, str(value).replace('\n', '\n\t')))
fp.write("\n")
for section in self.sections():
***************
*** 353,357 ****
if key == "__name__":
continue
! fp.write("%s = %s\n" % (key, value))
fp.write("\n")
--- 353,357 ----
if key == "__name__":
continue
! fp.write("%s = %s\n" % (key, str(value).replace('\n', '\n\t')))
fp.write("\n")