1
0
mirror of https://github.com/gryf/wicd.git synced 2026-01-04 21:04:15 +01:00

A bunch of small fixes for errors/warnings reported by Pylint.

This commit is contained in:
Dan O'Reilly
2009-01-31 00:31:50 -05:00
parent 339b622b09
commit d22a59cbcc
12 changed files with 38 additions and 41 deletions

View File

@@ -500,7 +500,7 @@ class WirelessInterface(Interface, wnettools.BaseWirelessInterface):
return 100 * int(strength) // int(max_strength)
else:
# Prevent a divide by zero error.
ap['quality'] = int(strength)
strength = int(strength)
if strength is None:
strength = misc.RunRegex(altstrength_pattern, output)

View File

@@ -293,8 +293,8 @@ class WirelessInterface(Interface, wnettools.BaseWirelessInterface):
if not self.scan_iface:
try:
self.scan_iface = iwscan.WirelessInterface(self.iface)
except (iwscan.error, e):
print "GetNetworks caught an exception: %s" %s
except iwscan.error, e:
print "GetNetworks caught an exception: %s" % e
return []
results = self.scan_iface.Scan()