diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-04-22 00:36:00 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-04-22 00:36:00 +0200 |
commit | 9048eb79c12d97c2facf4b6330df561fcb4c5536 (patch) | |
tree | 3579326d995340c2b3d238dc11f0ce9b20366fd1 | |
parent | 0e555786bdedb93c9ae687501aae8f0542df740f (diff) | |
download | paste-9048eb79c12d97c2facf4b6330df561fcb4c5536.tar.gz |
Port util.dateinterval to Python 3
-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] |