5
0
mirror of https://github.com/cwinfo/yggdrasil-map synced 2024-11-22 01:10:28 +00:00

sendGraph: Use .format consistently

Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
This commit is contained in:
Johannes Löthberg 2015-11-21 14:49:29 +01:00
parent 1f3f3e38dd
commit 3f10aee97f

View File

@ -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()