~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 5345.1.4.

Deprecate the ``file`` parameter of the ``config._get_parser()`` method.

* bzrlib/tests/test_config.py:
(TestIniConfig.make_config_parser, TestIniConfig,test_from_fp)
(TestIniConfig.test_cached): Use the _content parameter.
(TestIniConfigBuilding.test_get_parser_file_parameter_is_deprecated_):
Test deprecation.

* bzrlib/config.py:
(IniBasedConfig, GlobalConfig, LocationsConfig): Add a _content
parameter to constructor for tests.
(IniBasedConfig._get_parser): Deprecate the 'file' parameter.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: