/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/config.py

  • Committer: Vincent Ladeuil
  • Date: 2010-04-23 08:51:52 UTC
  • mfrom: (5131.2.6 support_OO_flag)
  • mto: This revision was merged to the branch mainline in revision 5179.
  • Revision ID: v.ladeuil+lp@free.fr-20100423085152-uoewc1vnkwqhw0pj
Manually assign docstrings to command objects, so that they work with python -OO

Show diffs side-by-side

added added

removed removed

Lines of Context:
519
519
 
520
520
    def _write_config_file(self):
521
521
        path = self._get_filename()
522
 
        f = open(path, 'wb')
523
 
        osutils.copy_ownership_from_path(path)
 
522
        f = osutils.open_with_ownership(path, 'wb')
524
523
        self._get_parser().write(f)
525
524
        f.close()
526
525
 
819
818
                trace.mutter('creating config parent directory: %r', parent_dir)
820
819
            os.mkdir(parent_dir)
821
820
        trace.mutter('creating config directory: %r', path)
822
 
        os.mkdir(path)
823
 
        osutils.copy_ownership_from_path(path)
 
821
        osutils.mkdir_with_ownership(path)
824
822
 
825
823
 
826
824
def config_dir():