commit e61d478a80e450067f78dfaaef54e0643b26e299
parent 3216a86773e6687c18a26ceeef48882817e5ffa9
Author: Amir Taaki <genjix@riseup.net>
Date: Wed, 29 Aug 2012 20:31:59 +0100
Tidy up of code to comply with style guide.
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/lib/interface.py b/lib/interface.py
@@ -355,14 +355,14 @@ class WalletSynchronizer(threading.Thread):
host = item[1]
ports = []
version = None
- if len(item)>2:
+ if len(item) > 2:
for v in item[2]:
- if re.match("[th]\d+",v):
- ports.append((v[0],v[1:]))
- if re.match("v(.?)+",v):
+ if re.match("[th]\d+", v):
+ ports.append((v[0], v[1:]))
+ if re.match("v(.?)+", v):
version = v[1:]
if ports and version:
- servers.append( (host, ports) )
+ servers.append((host, ports))
self.interface.servers = servers
assert self.interface.servers_loaded_callback is not None
self.interface.servers_loaded_callback()