rpctool: use pprint

This commit is contained in:
Sebastien Bourdeauducq 2015-08-17 15:45:08 +08:00
parent abbf5eb059
commit 324cafae3d
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import argparse
import textwrap
import sys
import numpy as np # Needed to use numpy in RPC call arguments on cmd line
import pprint
from artiq.protocols.pc_rpc import Client
@ -77,7 +78,7 @@ def call_method(remote, method_name, args):
method = getattr(remote, method_name)
ret = method(*[eval(arg) for arg in args])
if ret is not None:
print("{}".format(ret))
pprint.pprint(ret)
def main():