summaryrefslogtreecommitdiff
path: root/paste
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-04-22 00:36:00 +0200
committerVictor Stinner <victor.stinner@gmail.com>2015-04-22 00:36:00 +0200
commit9048eb79c12d97c2facf4b6330df561fcb4c5536 (patch)
tree3579326d995340c2b3d238dc11f0ce9b20366fd1 /paste
parent0e555786bdedb93c9ae687501aae8f0542df740f (diff)
downloadpaste-9048eb79c12d97c2facf4b6330df561fcb4c5536.tar.gz
Port util.dateinterval to Python 3
Diffstat (limited to 'paste')
-rw-r--r--paste/util/dateinterval.py2
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]