From 1ad89ec1245078431583f0b3fe7fff7f4ce9710b Mon Sep 17 00:00:00 2001 From: Lucas Meneghel Rodrigues Date: Mon, 9 Jun 2014 15:52:00 -0300 Subject: [PATCH] avocado.utils: Small unused variable fixes Signed-off-by: Lucas Meneghel Rodrigues --- avocado/utils/archive.py | 2 +- avocado/utils/virt.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/avocado/utils/archive.py b/avocado/utils/archive.py index 9bebf7c1..b23c99c8 100644 --- a/avocado/utils/archive.py +++ b/avocado/utils/archive.py @@ -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), diff --git a/avocado/utils/virt.py b/avocado/utils/virt.py index 2d9e2f36..80a2229b 100644 --- a/avocado/utils/virt.py +++ b/avocado/utils/virt.py @@ -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: -- GitLab