From 41c25f461192fcebf318ceeac63a544e04ff864b Mon Sep 17 00:00:00 2001 From: Laurent Bachelier Date: Fri, 25 Jan 2013 17:29:04 +0100 Subject: [PATCH] pastoob: Support "no expiration" --- weboob/applications/pastoob/pastoob.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/weboob/applications/pastoob/pastoob.py b/weboob/applications/pastoob/pastoob.py index 0c5feb44..39741f7e 100644 --- a/weboob/applications/pastoob/pastoob.py +++ b/weboob/applications/pastoob/pastoob.py @@ -121,6 +121,9 @@ class Pastoob(ReplApplication): 'title': self.options.title} def str_to_duration(self, s): + if s.strip().lower() == 'never': + return False + parts = re.findall(r'(\d*(?:\.\d+)?)\s*([A-z]+)', s) argsmap = {'Y|y|year|years|yr|yrs': 365.25 * 24 * 3600, 'M|o|month|months': 30.5 * 24 * 3600,