[PATCH 12/15] Replace has_key method to "key in dict"
Łukasz Żarnowiecki
dolohow at outlook.com
Tue May 10 00:18:34 BST 2016
There is no such method in Python3 any more.
Signed-off-by: Łukasz Żarnowiecki <dolohow at outlook.com>
---
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 6657ec4..004309a 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
--
2.8.2
More information about the OfflineIMAP-project
mailing list