From fec136d20ef27f6c1e397bc4be48a2bba3cb91a1 Mon Sep 17 00:00:00 2001 From: Adam Fast Date: Fri, 28 Jun 2013 23:03:53 -0500 Subject: [PATCH] Standardize indentation with the rest of the module --- ipsc.py | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/ipsc.py b/ipsc.py index 9f0ed7c..d6d0e95 100644 --- a/ipsc.py +++ b/ipsc.py @@ -117,21 +117,21 @@ def hashed_packet(key, data): return (data + hash) def print_peer_list(_ipsc_network): - print('\t', _ipsc_network['LOCAL']['DESCRIPTION']) - for dictionary in _ipsc_network['PEERS']: - hex_address = dictionary['IP'] - hex_port = dictionary['PORT'] - hex_radio_id = dictionary['RADIO_ID'] - hex_mode = dictionary['MODE'] - - address = [int(hex_address[0:2], 16), int(hex_address[2:4], 16), int(hex_address[4:6], 16), int(hex_address[6:8], 16)] - port = int(hex_port, 16) - radio_id = int(hex_radio_id, 16) - - print ('\t', address[0],address[1],address[2],address[3], sep='.', end='\t') - print (port, radio_id, sep=':', end=' ') - print ("IPSC Mode:", hex_mode) - print() + print('\t', _ipsc_network['LOCAL']['DESCRIPTION']) + for dictionary in _ipsc_network['PEERS']: + hex_address = dictionary['IP'] + hex_port = dictionary['PORT'] + hex_radio_id = dictionary['RADIO_ID'] + hex_mode = dictionary['MODE'] + + address = [int(hex_address[0:2], 16), int(hex_address[2:4], 16), int(hex_address[4:6], 16), int(hex_address[6:8], 16)] + port = int(hex_port, 16) + radio_id = int(hex_radio_id, 16) + + print ('\t', address[0],address[1],address[2],address[3], sep='.', end='\t') + print (port, radio_id, sep=':', end=' ') + print ("IPSC Mode:", hex_mode) + print() class IPSC(DatagramProtocol):