protocols/pc_rpc: properly convert FullArgSpec to dict

This commit is contained in:
Sebastien Bourdeauducq 2015-11-24 15:51:13 +08:00
parent 8999d57461
commit 91a8acf304

View File

@ -468,7 +468,7 @@ class Server(_AsyncioServer):
continue
method = getattr(target, name)
argspec = inspect.getfullargspec(method)
doc["methods"][name] = (dict(argspec.__dict__),
doc["methods"][name] = (dict(argspec._asdict()),
inspect.getdoc(method))
if self.builtin_terminate:
doc["methods"]["terminate"] = (