Fix wrong stacklevel
We don't have to look for upper call layers for that specific warning messages. Change-Id: Ifdc568c29e29c049dede280b76010a2c69928e76
This commit is contained in:
parent
a2616eddb7
commit
925c2a241f
@ -39,7 +39,7 @@ from oslo_concurrency._i18n import _
|
|||||||
|
|
||||||
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)
|
||||||
|
|
||||||
|
|
||||||
# NOTE(bnemec): eventlet doesn't monkey patch subprocess, so we need to
|
# NOTE(bnemec): eventlet doesn't monkey patch subprocess, so we need to
|
||||||
|
Loading…
Reference in New Issue
Block a user