1
0
mirror of https://github.com/gryf/wicd.git synced 2026-03-13 21:25:46 +01:00

Make GetWirelessInterfaces() return a list instead of the first interface. Also make the networking.py layer pull the first entry from the list.

Some documentation cleanup.
This commit is contained in:
Dan O'Reilly
2009-02-02 23:47:54 -05:00
parent 6347842000
commit e23af9b413
4 changed files with 6 additions and 6 deletions

View File

@@ -127,7 +127,7 @@ def GetWirelessInterfaces():
ifnames = [iface for iface in os.listdir(dev_dir) if os.path.isdir(dev_dir + iface)
and 'wireless' in os.listdir(dev_dir + iface)]
return bool(ifnames) and ifnames[0] or None
return ifnames
def GetWiredInterfaces():
""" Returns a list of wired interfaces on the system. """