1
0
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:
imdano
2008-08-24 08:15:24 +00:00
parent 0844386017
commit 37838ba057
4 changed files with 14 additions and 11 deletions

View File

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