From 9048eb79c12d97c2facf4b6330df561fcb4c5536 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 22 Apr 2015 00:36:00 +0200 Subject: Port util.dateinterval to Python 3 --- paste/util/dateinterval.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paste/util/dateinterval.py b/paste/util/dateinterval.py index 80fe347..023bce4 100644 --- a/paste/util/dateinterval.py +++ b/paste/util/dateinterval.py @@ -80,7 +80,7 @@ def interval_decode(s): s = s[1:] for match in allMatches(s, _timeRE): char = match.group(0)[-1].lower() - if not timeValues.has_key(char): + if char not in timeValues: # @@: should signal error continue time += int(match.group(0)[:-1]) * timeValues[char] -- cgit v1.2.1