~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/config.py

  • Committer: Aaron Bentley
  • Date: 2008-04-04 18:00:04 UTC
  • mto: (3242.2.9 repository-policy)
  • mto: This revision was merged to the branch mainline in revision 3354.
  • Revision ID: aaron@aaronbentley.com-20080404180004-nsnbu8w3ke4g1k4z
Clean-up

Show diffs side-by-side

added added

removed removed

Lines of Context:
898
898
    def _get_parser(self, file=None):
899
899
        if file is not None:
900
900
            return IniBasedConfig._get_parser(file)
901
 
        return self._get_config()
902
 
 
903
 
    def _get_config(self):
904
901
        return self._config._get_configobj()
905
902
 
906
903
    def get_option(self, name, section=None, default=None):
1106
1103
 
1107
1104
 
1108
1105
class TransportConfig(object):
 
1106
    """A configuration representation that stores data on a Transport.
 
1107
 
 
1108
    It is a low-level object that considers config data to be name/value pairs
 
1109
    that may be associated with a section.  Assigning meaning to the these
 
1110
    values is done at higher levels like TreeConfig.
 
1111
    """
1109
1112
 
1110
1113
    def __init__(self, transport, filename):
1111
1114
        self._transport = transport