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:
parent
19c43308b9
commit
a3bd5d4d38
@ -47,7 +47,7 @@ def _gettimeseq(date=None):
|
|||||||
try:
|
try:
|
||||||
if date is None:
|
if date is None:
|
||||||
date = int(time.time())
|
date = int(time.time())
|
||||||
if timehash.has_key(date):
|
if date in timehash:
|
||||||
timehash[date] += 1
|
timehash[date] += 1
|
||||||
else:
|
else:
|
||||||
timehash[date] = 0
|
timehash[date] = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user