summaryrefslogtreecommitdiff
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
commitf81500b71567db6eaf792fd50898cd1f8e5c17a1 (patch)
tree3579326d995340c2b3d238dc11f0ce9b20366fd1
parent8e671bffa0def29f7e205df0535f72d5734a087e (diff)
downloadpaste-git-f81500b71567db6eaf792fd50898cd1f8e5c17a1.tar.gz
Port util.dateinterval to Python 3
-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]