[virt-tools-list] [virt-manager] [PATCH 1/2] systray: Remove redundant variable assignment

Radostin Stoyanov rstoyanov1 at gmail.com
Thu Oct 26 11:00:06 UTC 2017


The explicit assignment of "name" is unnecessary.
---
 virtManager/systray.py | 1 -
 1 file changed, 1 deletion(-)

diff --git a/virtManager/systray.py b/virtManager/systray.py
index aa62df0a..9011038f 100644
--- a/virtManager/systray.py
+++ b/virtManager/systray.py
@@ -275,7 +275,6 @@ class vmmSystray(vmmGObject):
             return
 
         for i, name in enumerate(vm_names):
-            name = vm_names[i]
             connkey = vm_mappings[name]
             if connkey in self.conn_vm_menuitems[uri]:
                 vm_item = self.conn_vm_menuitems[uri][connkey]
-- 
2.13.6




More information about the virt-tools-list mailing list