From 0690a85fe03cc7ba9f94908feefd2c4042eec74d Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Sun, 30 Sep 2018 10:26:06 +0000 Subject: [PATCH] excuse: Avoid some unnecessary throw-away tuples Signed-off-by: Niels Thykier --- britney2/excuse.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/britney2/excuse.py b/britney2/excuse.py index 8d64e53..905ac8b 100644 --- a/britney2/excuse.py +++ b/britney2/excuse.py @@ -118,9 +118,11 @@ class Excuse(object): def set_vers(self, tver, uver): """Set the versions of the item from target and source suite""" - if tver: + if tver and uver: + self.ver = (tver, uver) + elif tver: self.ver = (tver, self.ver[1]) - if uver: + elif uver: self.ver = (self.ver[0], uver) def set_maint(self, maint):