diff options
| -rwxr-xr-x | lib/python/Components/config.py | 3 |
1 files changed, 2 insertions, 1 deletions
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): |
