[Openstack] [glance] legacy client removal and python-glanceclient

Kevin L. Mitchell kevin.mitchell at rackspace.com
Wed Aug 1 20:25:48 UTC 2012


On Wed, 2012-08-01 at 19:50 +0000, Gabriel Hurley wrote:
> Personally I'd recommend using Python's built-in warnings module and
> the standard DeprecationWarning and PendingDeprecation warning
> classes:
> 
> http://docs.python.org/library/warnings.html#warning-categories
> 
> For an example of this in action (outside OpenStack) check out
> Django's usage here:
> 
> https://github.com/django/django/blob/stable/1.4.x/django/core/management/sql.py#L99 

Indeed.  I even wrote a whole suite of deprecation decorators for
marking functions and classes as deprecated, using the
DeprecationWarning…but it got ripped out by someone because it wasn't
used anywhere.
-- 
Kevin L. Mitchell <kevin.mitchell at rackspace.com>





More information about the Openstack mailing list