diff options
author | Sascha Silbe <sascha-pgp@silbe.org> | 2010-10-16 20:24:40 (GMT) |
---|---|---|
committer | Sascha Silbe <sascha-pgp@silbe.org> | 2010-11-24 19:23:39 (GMT) |
commit | 47cd854703b924ac33cf6e98ee16b6c58151ff7d (patch) | |
tree | 1c20efad9df60f52731726d19c7bd1edc41e4fd0 /extensions | |
parent | 9ada03181c980ded5b14429215199f7c5225c98d (diff) |
pylint cleanup: don't override built-in objects
Reviewed-by: James Cameron <quozl@laptop.org>
Reviewed-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/deviceicon/network.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/deviceicon/network.py b/extensions/deviceicon/network.py index c9aee50..887c1c2 100644 --- a/extensions/deviceicon/network.py +++ b/extensions/deviceicon/network.py @@ -697,8 +697,8 @@ class OlpcMeshDeviceView(ToolButton): try: obj = self._bus.get_object(_NM_IFACE, ap_op) props = dbus.Interface(obj, 'org.freedesktop.DBus.Properties') - type = props.Get(_NM_DEVICE_IFACE, 'DeviceType') - if type == network.DEVICE_TYPE_802_11_OLPC_MESH: + device_type = props.Get(_NM_DEVICE_IFACE, 'DeviceType') + if device_type == network.DEVICE_TYPE_802_11_OLPC_MESH: netmgr.DeactivateConnection(conn_o) break except dbus.exceptions.DBusException: |