VirtualMailManager/cli/config.py
branchv0.6.x
changeset 322 94bd10e237e5
parent 320 011066435e6f
child 341 6709d0faf2f5
--- a/VirtualMailManager/cli/config.py	Wed Jul 28 02:52:08 2010 +0000
+++ b/VirtualMailManager/cli/config.py	Wed Jul 28 03:43:59 2010 +0000
@@ -57,7 +57,7 @@
                         break
             print
         if self._modified:
-            self.__save_changes()
+            self._save_changes()
 
     def set(self, option, value):
         """Set the value of an option.
@@ -81,9 +81,9 @@
         if not RawConfigParser.has_section(self, section):
             self.add_section(section)
         RawConfigParser.set(self, section, option_, val)
-        self.__save_changes()
+        self._save_changes()
 
-    def __save_changes(self):
+    def _save_changes(self):
         """Writes changes to the configuration file."""
         copy2(self._cfg_filename, self._cfg_filename + '.bak')
         self._cfg_file = open(self._cfg_filename, 'w')