mirror of
https://github.com/gryf/wicd.git
synced 2026-04-03 19:23:36 +02:00
experimental:
- Some minor cleanup/formatting fixes - Add a missing DetectWiredInterfaces() method to networking.py
This commit is contained in:
@@ -80,10 +80,10 @@ SIOCGIWAP = 0x8B15
|
||||
def _sanitize_string(string):
|
||||
blacklist = [';', '`', '$', '!', '*', '|', '>', '<']
|
||||
new_string = []
|
||||
|
||||
|
||||
if not string:
|
||||
return string
|
||||
|
||||
|
||||
for c in string:
|
||||
if c in blacklist:
|
||||
new_string.append("\\" + c)
|
||||
@@ -273,8 +273,6 @@ class Interface(object):
|
||||
client = "pump"
|
||||
return client
|
||||
|
||||
print 'checking dhcp...'
|
||||
|
||||
if self.DHCP_CLIENT:
|
||||
dhcp_client = get_client_name(self.DHCP_CLIENT)
|
||||
dhcp_path = self._find_client_path(dhcp_client)
|
||||
|
||||
Reference in New Issue
Block a user