From 44f8df8f420cb5a272642232cc80f13567d0083b Mon Sep 17 00:00:00 2001 From: Andre Sailer Date: Mon, 6 Nov 2023 15:26:01 +0100 Subject: [PATCH] sweep: #7272 create client get functions from HandlerMixins --- src/DIRAC/Core/Base/Client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DIRAC/Core/Base/Client.py b/src/DIRAC/Core/Base/Client.py index a487f9aa2d1..8cb064e74f6 100644 --- a/src/DIRAC/Core/Base/Client.py +++ b/src/DIRAC/Core/Base/Client.py @@ -159,8 +159,8 @@ def addFunctions(clientCls): # loop over all the nodes (classes, functions, imports) in the handlerModule for node in ast.iter_child_nodes(handlerAst): - # find only a class with the name of the handlerClass - if not (isinstance(node, ast.ClassDef) and node.name == handlerClassName): + # find only a class that starts with the name of the handlerClass + if not (isinstance(node, ast.ClassDef) and node.name.startswith(handlerClassName)): continue for member in ast.iter_child_nodes(node): # only look at functions