Skip to content

Commit a3e360a

Browse files
committed
docs: look for functions also in the HandlerMixin classes
1 parent 52e77c5 commit a3e360a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DIRAC/Core/Base/Client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ def addFunctions(clientCls):
156156

157157
# loop over all the nodes (classes, functions, imports) in the handlerModule
158158
for node in ast.iter_child_nodes(handlerAst):
159-
# find only a class with the name of the handlerClass
160-
if not (isinstance(node, ast.ClassDef) and node.name == handlerClassName):
159+
# find only a class that starts with the name of the handlerClass
160+
if not (isinstance(node, ast.ClassDef) and node.name.startswith(handlerClassName)):
161161
continue
162162
for member in ast.iter_child_nodes(node):
163163
# only look at functions

0 commit comments

Comments
 (0)