From d3b90e754b8f37fc8b7f15ca3434486d9fe9b23b Mon Sep 17 00:00:00 2001 From: Niels Thykier <niels@thykier.net> Date: Sat, 2 Sep 2017 11:10:56 +0000 Subject: [PATCH] britney: Rewrite conditional assignment The original method confused IntelliJ into thinking that binary_t was a boolean rather than an object. Signed-off-by: Niels Thykier <niels@thykier.net> --- britney.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/britney.py b/britney.py index faf55a4..0fb9c5e 100755 --- a/britney.py +++ b/britney.py @@ -1142,7 +1142,7 @@ class Britney(object): pkg_name = pkg_id.package_name # retrieve the testing (if present) and unstable corresponding binary packages - binary_t = pkg_name in packages_t_a and packages_t_a[pkg_name] or None + binary_t = packages_t_a[pkg_name] if pkg_name in packages_t_a else None binary_u = packages_s_a[pkg_name] # this is the source version for the new binary package