Update of /cvsroot/python/python/dist/src/Lib In directory usw-pr-cvs1:/tmp/cvs-serv18758 Modified Files: ConfigParser.py Log Message: [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.39 diff -C2 -d -r1.38 -r1.39 *** ConfigParser.py 18 Oct 2001 21:57:37 -0000 1.38 --- ConfigParser.py 8 Mar 2002 18:08:47 -0000 1.39 *************** *** 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")
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4