~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/config.py

  • Committer: Andrew Bennetts
  • Date: 2010-03-11 04:33:41 UTC
  • mfrom: (4797.33.4 2.1)
  • mto: This revision was merged to the branch mainline in revision 5082.
  • Revision ID: andrew.bennetts@canonical.com-20100311043341-rzdik83fnactjsxs
Merge lp:bzr/2.1, including fixes for #496813, #526211, #526353.

Show diffs side-by-side

added added

removed removed

Lines of Context:
510
510
        self._write_config_file()
511
511
 
512
512
    def _write_config_file(self):
513
 
        path = self._get_filename()
514
 
        f = osutils.open_with_ownership(path, 'wb')
 
513
        f = open(self._get_filename(), 'wb')
515
514
        self._get_parser().write(f)
516
515
        f.close()
517
516
 
810
809
                trace.mutter('creating config parent directory: %r', parent_dir)
811
810
            os.mkdir(parent_dir)
812
811
        trace.mutter('creating config directory: %r', path)
813
 
        osutils.mkdir_with_ownership(path)
 
812
        os.mkdir(path)
814
813
 
815
814
 
816
815
def config_dir():