diff options
-rw-r--r-- | Lib/ConfigParser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/ConfigParser.py b/Lib/ConfigParser.py index 190b694..bdce25e 100644 --- a/Lib/ConfigParser.py +++ b/Lib/ConfigParser.py @@ -344,7 +344,7 @@ class ConfigParser: if self.__defaults: fp.write("[DEFAULT]\n") for (key, value) in self.__defaults.items(): - fp.write("%s = %s\n" % (key, value)) + fp.write("%s = %s\n" % (key, str(value).replace('\n', '\n\t'))) fp.write("\n") for section in self.sections(): fp.write("[" + section + "]\n") @@ -352,7 +352,7 @@ class ConfigParser: for (key, value) in sectdict.items(): if key == "__name__": continue - fp.write("%s = %s\n" % (key, value)) + fp.write("%s = %s\n" % (key, str(value).replace('\n', '\n\t'))) fp.write("\n") def remove_option(self, section, option): |