The reason this appeared in pecan is because I have debug enabled, which causes deprecation warnings to be shown. This can be demonstrated as follows.
Create a new virtual env and install oslo config:
$ virtualenv oslotest $ . oslotest/bin/activate $ pip install oslo.config
Configure python to show deprecation warnings:
$ python >>> import logging, warnings >>> from logging import captureWarnings >>> logging.basicConfig() >>> captureWarnings(True) >>> warnings.simplefilter("default", DeprecationWarning)
Test a deprecation warning:
>>> warnings.warn('hello world',DeprecationWarning) WARNING:py.warnings:__main__:1: DeprecationWarning: hello world
Import oslo.config:
>>> import oslo.config WARNING:py.warnings:__main__:1: DeprecationWarning: The oslo namespace package is deprecated. Please use oslo_config instead.
This message is from this file: https://github.com/openstack/oslo.config/blob/master/oslo/config/__init__.py
The reason this appeared in pecan is because I have debug enabled, which causes deprecation warnings to be shown. This can be demonstrated as follows.
Create a new virtual env and install oslo config:
$ virtualenv oslotest bin/activate
$ . oslotest/
$ pip install oslo.config
Configure python to show deprecation warnings:
$ python basicConfig( ) (True) simplefilter( "default" , DeprecationWarning)
>>> import logging, warnings
>>> from logging import captureWarnings
>>> logging.
>>> captureWarnings
>>> warnings.
Test a deprecation warning:
>>> warnings. warn('hello world', DeprecationWarn ing) py.warnings: __main_ _:1: DeprecationWarning: hello world
WARNING:
Import oslo.config:
>>> import oslo.config py.warnings: __main_ _:1: DeprecationWarning: The oslo namespace package is deprecated. Please use oslo_config instead.
WARNING:
This message is from this file: https:/ /github. com/openstack/ oslo.config/ blob/master/ oslo/config/ __init_ _.py