Drop wrong stacklevel
This is follow-up of 077e43698e
and fixes
the wrong stack level for deprecation warning. We don't have to look
for the point of upper caller.
Change-Id: I615d995c42e6ff689d25f5db8026d9cd684d93ad
This commit is contained in:
parent
a10ac95be1
commit
f15a4b6206
@ -17,7 +17,7 @@ from oslo_log import log as logging
|
|||||||
|
|
||||||
if os.name == 'nt':
|
if os.name == 'nt':
|
||||||
warnings.warn('Support for Windows OS is deprecated.',
|
warnings.warn('Support for Windows OS is deprecated.',
|
||||||
category=DeprecationWarning, stacklevel=3)
|
category=DeprecationWarning)
|
||||||
from os_vif.internal.ip.windows.impl_netifaces import \
|
from os_vif.internal.ip.windows.impl_netifaces import \
|
||||||
Netifaces as ip_lib_class
|
Netifaces as ip_lib_class
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user