From a3bd5d4d382bf3a522ac48c33ffdd97dc7f1b72a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20=C5=BBarnowiecki?= Date: Sun, 8 May 2016 17:22:04 +0200 Subject: [PATCH] Replace has_key method to "key in dict" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There is no such method in Python3 any more. Signed-off-by: Łukasz Żarnowiecki Signed-off-by: Nicolas Sebrecht --- offlineimap/folder/Maildir.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offlineimap/folder/Maildir.py b/offlineimap/folder/Maildir.py index c3ede3c..cc20c81 100644 --- a/offlineimap/folder/Maildir.py +++ b/offlineimap/folder/Maildir.py @@ -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