Skip to content

Commit 38cde53

Browse files
authored
Merge pull request #7273 from DIRACGridBot/cherry-pick-2-6d71e45f6-integration
[sweep:integration] create client get functions from HandlerMixins
2 parents 0b55787 + 44f8df8 commit 38cde53

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
@@ -159,8 +159,8 @@ def addFunctions(clientCls):
159159

160160
# loop over all the nodes (classes, functions, imports) in the handlerModule
161161
for node in ast.iter_child_nodes(handlerAst):
162-
# find only a class with the name of the handlerClass
163-
if not (isinstance(node, ast.ClassDef) and node.name == handlerClassName):
162+
# find only a class that starts with the name of the handlerClass
163+
if not (isinstance(node, ast.ClassDef) and node.name.startswith(handlerClassName)):
164164
continue
165165
for member in ast.iter_child_nodes(node):
166166
# only look at functions

0 commit comments

Comments
 (0)