VirtualMailManager/cli/config.py
branchv0.7.x
changeset 658 ad967c4b7fe5
parent 643 df1e3b67882a
child 659 a6b6b0937cae
equal deleted inserted replaced
657:6515e3b88dec 658:ad967c4b7fe5
    87         self._save_changes()
    87         self._save_changes()
    88 
    88 
    89     def _save_changes(self):
    89     def _save_changes(self):
    90         """Writes changes to the configuration file."""
    90         """Writes changes to the configuration file."""
    91         copy2(self._cfg_filename, self._cfg_filename + '.bak')
    91         copy2(self._cfg_filename, self._cfg_filename + '.bak')
    92         with open(self._cfg_filename, 'w') as self._cfg_file:
    92         with open(self._cfg_filename, 'w', encoding='utf-8') as self._cfg_file:
    93             self.write(self._cfg_file)
    93             self.write(self._cfg_file)
    94 
    94 
    95 del _
    95 del _