forked from M-Labs/artiq
rpc: fix indentation of class docstring
This commit is contained in:
parent
71721a152e
commit
4ba8951ae1
|
@ -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"]:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue