[PATCH] [setup] make sonarqube happy

Nicolas Chauvat nicolas.chauvat at logilab.fr
Wed Jun 6 19:00:58 CEST 2018


# HG changeset patch
# User Nicolas Chauvat <nicolas.chauvat at logilab.fr>
# Date 1528304414 -7200
#      Wed Jun 06 19:00:14 2018 +0200
# Node ID 4502211155a5213024dc6a670ebc1bf8529b9408
# Parent  ea81a3f572bce63c0f5a61839a70ddbb1f7178ab
[setup] make sonarqube happy

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -34,11 +34,11 @@ data_files = __pkginfo__.get('data_files
 dependency_links = __pkginfo__.get('dependency_links', ())
 
 requires = {}
 for entry in ("__depends__",):  # "__recommends__"):
     requires.update(__pkginfo__.get(entry, {}))
-install_requires = ["{0} {1}".format(d, v and v or "").strip()
+install_requires = ["{0} {1}".format(d, v if v else "").strip()
                     for d, v in requires.items()]
 
 setup(
     name=distname,
     version=version,


More information about the cubicweb-devel mailing list