From 533dd652737ca702c0e9528ed06e8a17b9ec72c5 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Tue, 3 Mar 2009 00:44:19 +0100 Subject: [PATCH] first pickle, then save to avoid killing config file on sigint --- lib/python/Components/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index 79e99b03..4cc40633 100755 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -1614,8 +1614,9 @@ class Config(ConfigSubsection): self.setSavedValue(tree["config"]) def saveToFile(self, filename): + text = self.pickle() f = open(filename, "w") - f.write(self.pickle()) + f.write(text) f.close() def loadFromFile(self, filename): -- 2.30.2