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:
Takashi Kajinami 2024-02-22 00:02:38 +09:00
parent a2616eddb7
commit 925c2a241f
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ from oslo_concurrency._i18n import _
if os.name == 'nt':
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