Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/novaclient/api_versions.py b/novaclient/api_versions.py
- index 63bc789..0005b96 100644
- --- a/novaclient/api_versions.py
- +++ b/novaclient/api_versions.py
- @@ -425,16 +425,17 @@ def _warn_missing_microversion_header(header_name):
- def deprecated_in(version):
- + decorator = wraps('2.0', version)
- def wrapper(fn):
- - @wraps('2.0', version)
- @functools.wraps(fn)
- def wrapped(*a, **k):
- + decorated = decorator(fn)
- if hasattr(fn, '__class__'):
- mod = fn.__class__.__module__
- else:
- mod = fn.__module__
- warnings.warn('The %s module is deprecated '
- 'and will be removed.' % mod, DeprecationWarning)
- - return fn(*a, **k)
- + return decorated(*a, **k)
- return wrapped
- return wrapper
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement