diff options
Diffstat (limited to 'paste/util/dateinterval.py')
-rw-r--r-- | paste/util/dateinterval.py | 2 |
1 files changed, 1 insertions, 1 deletions
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] |