From 925c2a241fee37985533b7debc7b61b3d662f60a Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Thu, 22 Feb 2024 00:02:38 +0900 Subject: [PATCH] Fix wrong stacklevel We don't have to look for upper call layers for that specific warning messages. Change-Id: Ifdc568c29e29c049dede280b76010a2c69928e76 --- oslo_concurrency/processutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oslo_concurrency/processutils.py b/oslo_concurrency/processutils.py index 458e3e6..2fad1db 100644 --- a/oslo_concurrency/processutils.py +++ b/oslo_concurrency/processutils.py @@ -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