From 324cafae3d75865f28e4978bf98fe6a3bd1632b7 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 17 Aug 2015 15:45:08 +0800 Subject: [PATCH] rpctool: use pprint --- artiq/frontend/artiq_rpctool.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/artiq/frontend/artiq_rpctool.py b/artiq/frontend/artiq_rpctool.py index a8a166891..acfa886d1 100755 --- a/artiq/frontend/artiq_rpctool.py +++ b/artiq/frontend/artiq_rpctool.py @@ -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():