From 91a8acf304ae3b9b4d6d7a92b99440f933b1fbfa Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 24 Nov 2015 15:51:13 +0800 Subject: [PATCH] protocols/pc_rpc: properly convert FullArgSpec to dict --- artiq/protocols/pc_rpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/protocols/pc_rpc.py b/artiq/protocols/pc_rpc.py index d39fbb68b..36e7e4851 100644 --- a/artiq/protocols/pc_rpc.py +++ b/artiq/protocols/pc_rpc.py @@ -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"] = (