Skip to content

Commit 6d71e45

Browse files
authored
Merge pull request #7272 from andresailer/8_createClient
[8.0] create client get functions from HandlerMixins
2 parents 1af9355 + a3e360a commit 6d71e45

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)