From 05458f0ee612fbf64f2268100e1387a026959c90 Mon Sep 17 00:00:00 2001 From: Andre Sailer Date: Mon, 6 Nov 2023 13:42:58 +0100 Subject: [PATCH] docs: look for functions also in the HandlerMixin classes --- 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 701e5be6e27..e4be2264923 100644 --- a/src/DIRAC/Core/Base/Client.py +++ b/src/DIRAC/Core/Base/Client.py @@ -157,8 +157,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