Replace has_key method to "key in dict"

There is no such method in Python3 any more.

Signed-off-by: Łukasz Żarnowiecki <dolohow@outlook.com>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Łukasz Żarnowiecki 2016-05-08 17:22:04 +02:00 committed by Nicolas Sebrecht
parent 19c43308b9
commit a3bd5d4d38

View File

@ -47,7 +47,7 @@ def _gettimeseq(date=None):
try:
if date is None:
date = int(time.time())
if timehash.has_key(date):
if date in timehash:
timehash[date] += 1
else:
timehash[date] = 0