Rev 2926: Fix forgotten reference to _get_filename. in http://code.launchpad.net/%7Ev-ladeuil/bzr/auth.ring

Vincent Ladeuil v.ladeuil+lp at free.fr
Sun Nov 4 15:33:51 GMT 2007


At http://code.launchpad.net/%7Ev-ladeuil/bzr/auth.ring

------------------------------------------------------------
revno: 2926
revision-id:v.ladeuil+lp at free.fr-20071104153337-4ke193lma6e76ior
parent: v.ladeuil+lp at free.fr-20071104152917-nrsumxpk3dikso2c
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: auth.ring
timestamp: Sun 2007-11-04 16:33:37 +0100
message:
  Fix forgotten reference to _get_filename.
  
  * bzrlib/config.py:
  (AuthenticationConfig._save): _get_filename() has been replaced by
  _filename.
modified:
  bzrlib/config.py               config.py-20051011043216-070c74f4e9e338e8
-------------- next part --------------
=== modified file 'bzrlib/config.py'
--- a/bzrlib/config.py	2007-11-04 15:24:27 +0000
+++ b/bzrlib/config.py	2007-11-04 15:33:37 +0000
@@ -966,10 +966,9 @@
 
     def _save(self):
         """Save the config file, only tests should use it for now."""
-        file_name = self._get_filename()
-        conf_dir = os.path.dirname(file_name)
+        conf_dir = os.path.dirname(self._filename)
         ensure_config_dir_exists(conf_dir)
-        self._get_config().write(file(file_name, 'wb'))
+        self._get_config().write(file(self._filename, 'wb'))
 
     def _set_option(self, section_name, option_name, value):
         """Set an authentication configuration option"""



More information about the bazaar-commits mailing list