1
0
mirror of https://github.com/gryf/wicd.git synced 2026-01-06 05:44:18 +01:00

Get rid of unneeded "use_tray" variable being passed around in wicd-client.

Remove some extra whitespace in networking.py
This commit is contained in:
Dan O'Reilly
2009-02-27 00:35:53 -05:00
parent ae0f589d43
commit 0af4c5331e
2 changed files with 21 additions and 36 deletions

View File

@@ -396,7 +396,7 @@ class ConnectThread(threading.Thread):
print 'Setting the broadcast address...' + self.network['broadcast']
iface.SetAddress(broadcast=self.network['broadcast'])
@abortable
@abortable
def set_ip_address(self, iface):
""" Set the IP address for the given interface.
@@ -420,7 +420,7 @@ class ConnectThread(threading.Thread):
self.abort_connection(dhcp_status)
return
@abortable
@abortable
def set_dns_addresses(self):
""" Set the DNS address(es).
@@ -443,7 +443,7 @@ class ConnectThread(threading.Thread):
self.network.get('dns_domain'),
self.network.get('search_domain'))
@abortable
@abortable
def release_dhcp_clients(self, iface):
""" Release all running dhcp clients. """
print "Releasing DHCP leases..."
@@ -474,7 +474,7 @@ class ConnectThread(threading.Thread):
finally:
self.lock.release()
@abortable
@abortable
def put_iface_up(self, iface):
""" Bring up given interface. """
print 'Putting interface up...'
@@ -819,7 +819,7 @@ class WirelessConnectThread(ConnectThread):
print 'Stopping wpa_supplicant'
wiface.StopWPA()
@abortable
@abortable
def generate_psk_and_authenticate(self, wiface):
""" Generates a PSK and authenticates if necessary.