1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-26 08:22:32 +01:00

Fix bug within GetWirelessInterfaces()

This commit is contained in:
David Paleino
2012-11-16 21:02:06 +01:00
parent d44051203c
commit 5508781f1f

View File

@@ -164,7 +164,7 @@ def GetWirelessInterfaces():
"""
dev_dir = '/sys/class/net/'
ifnames = [iface for iface in os.listdir(dev_dir) and isWireless(str(iface))]
ifnames = [iface for iface in os.listdir(dev_dir) if isWireless(str(iface))]
return ifnames
def GetWiredInterfaces():