avocado.utils: Small unused variable fixes

Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
上级 e6094163
......@@ -248,7 +248,7 @@ def create_zip(name, path):
if name.endswith('.zip') is False:
name += '.zip'
with zipfile.ZipFile(name, 'w') as zf:
for root, dirs, files in os.walk(path):
for root, _, files in os.walk(path):
for f in files:
newroot = root.replace(path, '')
zf.write(os.path.join(root, f),
......
......@@ -63,7 +63,7 @@ class Hypervisor(object):
if self.connected is False:
try:
self.connection = libvirt.open(self.uri)
except libvirt.libvirtError as err:
except libvirt.libvirtError:
self.connected = False
return None
else:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册