From d45df4b69d9e458c5e6f973d0ee4a26810a34622 Mon Sep 17 00:00:00 2001 From: Euan Harris Date: Thu, 20 Apr 2017 15:50:23 +0100 Subject: [PATCH] createmockconfig: Fix pylint warning Signed-off-by: Euan Harris --- planex/cmd/createmockconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planex/cmd/createmockconfig.py b/planex/cmd/createmockconfig.py index 01bd1288..5944919d 100644 --- a/planex/cmd/createmockconfig.py +++ b/planex/cmd/createmockconfig.py @@ -52,7 +52,7 @@ def update_mock_repos(config, yum_repos): for repo in yum_repos: config.add_section(repo.id) config.set(repo.id, 'name', repo.name) - if len(repo.baseurl): + if repo.baseurl: config.set(repo.id, 'baseurl', ' '.join(repo.baseurl)) else: config.set(repo.id, 'mirrorlist', repo.mirrorlist)