- 'int:nonneg int:nonneg')
- if method:
- return method, argtypes
- method_candidate = 'cmd_' + command_name
- if hasattr(self, method_candidate):
- method = getattr(self, method_candidate)
- if hasattr(method, 'argtypes'):
- argtypes = method.argtypes
- return method, argtypes
+ 'int:nonneg int:nonneg ')
+ if func:
+ return func, argtypes
+ func_candidate = 'cmd_' + command_name
+ if hasattr(self, func_candidate):
+ func = getattr(self, func_candidate)
+ if hasattr(func, 'argtypes'):
+ argtypes = func.argtypes
+ return func, argtypes