/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

Warn if a config variable can't be interpreted as a boolean

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():
1417
1415
 
1418
1416
 
1419
1417
class PlainTextCredentialStore(CredentialStore):
1420
 
    __doc__ = """Plain text credential store for the authentication.conf file"""
 
1418
    """Plain text credential store for the authentication.conf file."""
1421
1419
 
1422
1420
    def decode_password(self, credentials):
1423
1421
        """See CredentialStore.decode_password."""