From fd91a63d0a91a6d232f9345ae247d76d84e1a1a6 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Wed, 17 Feb 2010 22:08:49 +0100 Subject: pylint: Remove unused variable --- layman/config.py | 4 ++-- layman/dbbase.py | 2 +- layman/overlays/source.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layman/config.py b/layman/config.py index a66ca25..bbafba3 100644 --- a/layman/config.py +++ b/layman/config.py @@ -236,7 +236,7 @@ class Config(object): # Parse the command line first since we need to get the config # file option. - (self.options, args) = self.parser.parse_args() + self.options = self.parser.parse_args()[0] # handle debugging OUT.cli_handle(self.options) @@ -314,7 +314,7 @@ class Config(object): OUT.debug('Retrieving keys', 8) - keys += [name for name, value in self.config.items('MAIN') + keys += [name for name, _ in self.config.items('MAIN') if not name in keys] OUT.debug('Retrieving keys', 8) diff --git a/layman/dbbase.py b/layman/dbbase.py index 3b9105c..a7c4154 100644 --- a/layman/dbbase.py +++ b/layman/dbbase.py @@ -202,7 +202,7 @@ class DbBase: ''' result = [] - for name, overlay in self.overlays.items(): + for _, overlay in self.overlays.items(): if verbose: result.append((str(overlay), overlay.is_supported(), diff --git a/layman/overlays/source.py b/layman/overlays/source.py index 65035f0..5ff2b15 100644 --- a/layman/overlays/source.py +++ b/layman/overlays/source.py @@ -95,7 +95,7 @@ class OverlaySource(object): try: self.supported() return True - except Exception, error: + except: return False def command(self): -- cgit v1.2.3-1-g7c22