[PATCH 1/3] Remove unused variables
David Shea
dshea at redhat.com
Wed Dec 4 14:52:56 UTC 2013
---
pyanaconda/nm.py | 2 +-
pyanaconda/ui/gui/spokes/network.py | 5 ++---
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/pyanaconda/nm.py b/pyanaconda/nm.py
index 17f5c9d..70e100a 100644
--- a/pyanaconda/nm.py
+++ b/pyanaconda/nm.py
@@ -799,7 +799,7 @@ def nm_delete_connection(uuid):
if not settings_paths:
return False
proxy = _get_proxy(object_path=settings_paths[0], interface_name="org.freedesktop.NetworkManager.Settings.Connection")
- settings = proxy.Delete()
+ proxy.Delete()
def nm_update_settings_of_device(name, new_values):
"""Update setting of device.
diff --git a/pyanaconda/ui/gui/spokes/network.py b/pyanaconda/ui/gui/spokes/network.py
index 16360b4..7158f09 100644
--- a/pyanaconda/ui/gui/spokes/network.py
+++ b/pyanaconda/ui/gui/spokes/network.py
@@ -256,10 +256,10 @@ class DeviceConfiguration(object):
settings = nm.nm_get_settings(self.con_uuid, "connection", "uuid")
try:
value = settings[0][key1][key2]
- except IndexError as e:
+ except IndexError:
log.debug("network: can't find connection with uuid %s",
self.con_uuid)
- except KeyError as e:
+ except KeyError:
log.debug("network: can't find '%s' '%s' in connection %s",
key1, key2, self.con_uuid)
else:
@@ -843,7 +843,6 @@ class NetworkControlBox(GObject.GObject):
vlanid = dev_cfg.device.get_vlan_id()
else:
vlanid = dev_cfg.setting_value("vlan", "id")
- parent = dev_cfg.setting_value("vlan", "parent")
self._set_device_info_value("wired", "vlanid", str(vlanid))
def _refresh_speed_hwaddr(self, dev_cfg, state=None):
--
1.8.4.2
More information about the anaconda-patches
mailing list