1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

Change the warning about 'scheme' and 'apisrv' to something not as confusing.

This commit is contained in:
Michal Marek 2009-06-23 19:35:00 +00:00
parent 5750e7278c
commit 599279a28f

View File

@ -370,10 +370,8 @@ def get_config(override_conffile = None,
scheme = config.get('scheme', 'https')
config['apiurl'] = urljoin(scheme, apisrv)
if config.has_key('apisrv') or config.has_key('scheme'):
import warnings
warnings.warn('Use of the \'scheme\' or \'apisrv\' config option is deprecated! ' \
'See README for migration details.',
DeprecationWarning)
print >>sys.stderr, 'Warning: Use of the \'scheme\' or \'apisrv\' in ~/.oscrc is deprecated!\n' \
'Warning: See README for migration details.'
for i in boolean_opts:
try: