mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-03-12 03:41:08 +00:00
Stop using sys.maxint
It doesn't exist in python3, but 1000 days should be safe enough as a fallback for a package without urgency. Signed-off-by: Julien Cristau <jcristau@debian.org>
This commit is contained in:
parent
b3aef7fe6d
commit
63ccd53759
@ -789,7 +789,7 @@ class Britney(object):
|
||||
|
||||
# read the minimum days associated with the urgencies
|
||||
urgency_old = urgencies.get(l[0], None)
|
||||
mindays_old = self.MINDAYS.get(urgency_old, sys.maxint)
|
||||
mindays_old = self.MINDAYS.get(urgency_old, 1000)
|
||||
mindays_new = self.MINDAYS.get(l[2], self.MINDAYS[self.options.default_urgency])
|
||||
|
||||
# if the new urgency is lower (so the min days are higher), do nothing
|
||||
|
Loading…
x
Reference in New Issue
Block a user