excuse: Avoid some unnecessary throw-away tuples

Signed-off-by: Niels Thykier <niels@thykier.net>
ubuntu/rebased
Niels Thykier 6 years ago
parent bd1a0ea000
commit 0690a85fe0
No known key found for this signature in database
GPG Key ID: A65B78DBE67C7AAC

@ -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):

Loading…
Cancel
Save