From 3f1c5f09b5a8f8e3db64575ef39ee1a933de06c4 Mon Sep 17 00:00:00 2001 From: Chris Burr Date: Wed, 2 Oct 2024 13:59:54 +0200 Subject: [PATCH] test: Supress warnings from pylint 3.3.0 --- src/DIRAC/Core/Tornado/Server/HandlerManager.py | 2 +- src/DIRAC/Core/Tornado/Server/private/BaseRequestHandler.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DIRAC/Core/Tornado/Server/HandlerManager.py b/src/DIRAC/Core/Tornado/Server/HandlerManager.py index 2602200012b..42f60226bce 100644 --- a/src/DIRAC/Core/Tornado/Server/HandlerManager.py +++ b/src/DIRAC/Core/Tornado/Server/HandlerManager.py @@ -123,7 +123,7 @@ def __load(self, instances, componentType, pathFinder): # see DIRAC.Core.Tornado.Server.private.BaseRequestHandler for more details # this method should return a list of routes associated with the handler, it is a regular expressions # see https://www.tornadoweb.org/en/stable/routing.html#tornado.routing.URLSpec, ``pattern`` argument. - urls = handler._BaseRequestHandler__pre_initialize() + urls = handler._BaseRequestHandler__pre_initialize() # pylint: disable=no-member # First of all check if we can find route if not urls: diff --git a/src/DIRAC/Core/Tornado/Server/private/BaseRequestHandler.py b/src/DIRAC/Core/Tornado/Server/private/BaseRequestHandler.py index a089dfac171..786e65743b0 100644 --- a/src/DIRAC/Core/Tornado/Server/private/BaseRequestHandler.py +++ b/src/DIRAC/Core/Tornado/Server/private/BaseRequestHandler.py @@ -953,7 +953,7 @@ async def __execute(self, *args, **kwargs): # pylint: disable=arguments-differ # you need to define the finish_ method. # This method will be started after _executeMethod is completed. elif callable(finishFunc := getattr(self, f"finish_{self.__methodName}", None)): - finishFunc() + finishFunc() # pylint: disable=not-callable # In case nothing is returned elif self.__result is None: