From c79c0848e592e7e99b158bde5655889eb022135b Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Sat, 25 Apr 2015 16:37:59 +0200 Subject: [PATCH] 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 --- britney.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/britney.py b/britney.py index 241bc54..3ff371d 100755 --- a/britney.py +++ b/britney.py @@ -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