diff options
| author | Jeff Lane <jeffrey.lane@canonical.com> | 2014-10-08 15:37:46 -0400 |
|---|---|---|
| committer | Jeff Lane <jeffrey.lane@canonical.com> | 2014-10-08 15:37:46 -0400 |
| commit | 70357a4a47fd04c75486580f6534239527cced91 (patch) | |
| tree | 6e361d3c88eb12adf39a2603eff78801ef7cc019 | |
| parent | 875441a06afefb872fecc40ca4448363eef4fa91 (diff) | |
PEP8 cleanup for network_device_info
| -rwxr-xr-x | bin/network_device_info | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/network_device_info b/bin/network_device_info index b8c0267..f4b7911 100755 --- a/bin/network_device_info +++ b/bin/network_device_info @@ -200,8 +200,10 @@ def match_counts(nm_devices, udev_devices, devtype): if udev.category == udevtype] if len(nm_type_devices) != len(udev_type_devices): print("ERROR: devices missing - udev showed %d %s devices, but " - "NetworkManager saw %d devices in %s" % (len(udev_type_devices), - udevtype, len(nm_type_devices), devtype), file=sys.stderr) + "NetworkManager saw %d devices in %s" % + (len(udev_type_devices), udevtype, + len(nm_type_devices), devtype), + file=sys.stderr) return False else: return True @@ -253,7 +255,7 @@ def main(args): if not match_counts(nm_devices, udev_devices, "WiFi"): return 1 - elif not match_counts(nm_devices, udev_devices, ("Ethernet","Modem")): + elif not match_counts(nm_devices, udev_devices, ("Ethernet", "Modem")): return 1 else: return 0 |
