summaryrefslogtreecommitdiffstats
path: root/layman/config.py
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2010-02-17 22:08:49 +0100
committerSebastian Pipping <sebastian@pipping.org>2010-02-17 22:41:11 +0100
commitfd91a63d0a91a6d232f9345ae247d76d84e1a1a6 (patch)
treeb5c8ad8639b558ae8ddf06fd5916573bd659ac78 /layman/config.py
parente404a75383b8b70e8d39f419ed77cbcc75918747 (diff)
downloadlayman-fd91a63d0a91a6d232f9345ae247d76d84e1a1a6.tar.gz
layman-fd91a63d0a91a6d232f9345ae247d76d84e1a1a6.tar.bz2
layman-fd91a63d0a91a6d232f9345ae247d76d84e1a1a6.zip
pylint: Remove unused variable
Diffstat (limited to 'layman/config.py')
-rw-r--r--layman/config.py4
1 files changed, 2 insertions, 2 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)