~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/config.py

  • Committer: Vincent Ladeuil
  • Date: 2007-11-04 15:44:32 UTC
  • mto: (2961.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 2962.
  • Revision ID: v.ladeuil+lp@free.fr-20071104154432-hxcely69cx6acqzb
Fix forgotten reference to _get_filename and duplicated code.

* bzrlib/transport/http/_urllib.py:
(HttpTransport_urllib._perform): Delete duplicate declarations.

* bzrlib/config.py:
(AuthenticationConfig._save): _get_filename() has been replaced by
_filename.

Show diffs side-by-side

added added

removed removed

Lines of Context:
966
966
 
967
967
    def _save(self):
968
968
        """Save the config file, only tests should use it for now."""
969
 
        file_name = self._get_filename()
970
 
        conf_dir = os.path.dirname(file_name)
 
969
        conf_dir = os.path.dirname(self._filename)
971
970
        ensure_config_dir_exists(conf_dir)
972
 
        self._get_config().write(file(file_name, 'wb'))
 
971
        self._get_config().write(file(self._filename, 'wb'))
973
972
 
974
973
    def _set_option(self, section_name, option_name, value):
975
974
        """Set an authentication configuration option"""