From 4ba8951ae17eb03d7b6d51c3328cd67452a4c48c Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 23 Jun 2015 19:31:52 +0000 Subject: [PATCH] rpc: fix indentation of class docstring --- artiq/frontend/artiq_rpctool.py | 1 + artiq/protocols/pc_rpc.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/artiq/frontend/artiq_rpctool.py b/artiq/frontend/artiq_rpctool.py index a97c5bb70..a26d70cf7 100755 --- a/artiq/frontend/artiq_rpctool.py +++ b/artiq/frontend/artiq_rpctool.py @@ -39,6 +39,7 @@ def list_methods(remote): doc = remote.get_rpc_method_list() if doc["docstring"] is not None: print(doc["docstring"]) + print() for name, (argspec, docstring) in sorted(doc["methods"].items()): args = "" for arg in argspec["args"]: diff --git a/artiq/protocols/pc_rpc.py b/artiq/protocols/pc_rpc.py index 918c26c17..d50c13591 100644 --- a/artiq/protocols/pc_rpc.py +++ b/artiq/protocols/pc_rpc.py @@ -443,7 +443,7 @@ class Server(_AsyncioServer): if obj["action"] == "get_rpc_method_list": members = inspect.getmembers(target, inspect.ismethod) doc = { - "docstring": target.__doc__, + "docstring": inspect.getdoc(target), "methods": {} } for name, method in members: