From 114de17bf54e0ed588ce1a7c9ec3abf473cd5611 Mon Sep 17 00:00:00 2001 From: Henry Gessau Date: Fri, 5 Aug 2016 15:03:18 -0400 Subject: [PATCH] Don't use versions in _DeprecateSubset The _DeprecateSubset helper was developed during Mitaka, but it will be used for many versions. The version information should not be hard-coded. Instead we emit deprecation messages without any version information. Example warning before this patch: DeprecationWarning: IPV6_MODES in version 'mitaka' and will be removed in version 'newton': moved to neutron_lib.constants After: DeprecationWarning: IPV6_MODES: moved to neutron_lib.constants Change-Id: Iaae5b58a406d4021ff22e8a28e30ae4f746ce211 --- neutron/common/_deprecate.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/neutron/common/_deprecate.py b/neutron/common/_deprecate.py index f5219a4f2fe..d3930b64ba4 100644 --- a/neutron/common/_deprecate.py +++ b/neutron/common/_deprecate.py @@ -40,8 +40,6 @@ class _DeprecateSubset(object): debtcollector.deprecate( name, message='moved to %s' % other_mod.__name__, - version='mitaka', - removal_version='newton', stacklevel=4) return vars(other_mod)[name]