From 3f10aee97f4a86ea6204784bf6bf70f837860497 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20L=C3=B6thberg?= Date: Sat, 21 Nov 2015 14:49:29 +0100 Subject: [PATCH] sendGraph: Use .format consistently MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- scripts/sendGraph.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/sendGraph.py b/scripts/sendGraph.py index 0c423a5..b2425fe 100755 --- a/scripts/sendGraph.py +++ b/scripts/sendGraph.py @@ -88,7 +88,7 @@ def connect(): print('Connecting using default or ~/.cjdnsadmin credentials...') con = cjdns.connectWithAdminInfo() else: - print('Connecting to port %d...' % (cjdns_port)) + print('Connecting to port {:d}...'.format(cjdns_port)) con = cjdns.connect(cjdns_ip, cjdns_port, cjdns_password) print(admin_tools.whoami(con)['IP']) @@ -212,7 +212,7 @@ def send_graph(nodes, edges): if r.content == 'OK': print('Done!') else: - print('Error: %s' % r.content) + print('Error: {:s}'.format(r.content)) if __name__ == '__main__': main()