Go to file
Doug Hellmann ee112220e6 Do not report deprecations in subclasses
Upgrading to mock 1.1.0 somehow exposed the logic error in deprecated()
that was causing subclasses of deprecated exceptions to be reported as
deprecated when they should not be. The problem makes sense because we
were indiscriminately reporting the case in the constructor, and if the
subclass initialized the base class the deprecation reporting function
would be called. Change the logic to only report the deprecation if the
class being instantiated matches one of the deprecated classes.

Add a warning, and skip the test, for catching deprecated exceptions
under Python 3, since this feature does not always work there.

Also explicitly declare the versions of mock supported in the unit
tests, since we need different versions for python 2.6 vs. 2.7 and
later.

Change-Id: Ib60413a0e45901902382c3ae547be0e24df4e50c
2015-07-14 21:07:05 +00:00
2015-06-22 08:27:05 +00:00

oslo.log -- Oslo Logging Library

Latest Version

Downloads

The oslo.log (logging) configuration library provides standardized configuration for all openstack projects. It also provides custom formatters, handlers and support for context specific logging (like resource id's etc).

Description
Logging library.
Readme 7.7 MiB
Languages
Python 100%