From 144f9832c31b85d7a449c6cc6ef2625e84c32078 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Thu, 6 Feb 2014 19:44:25 -0400 Subject: make last_uid a defaultdict --- mail/src/leap/mail/imap/memorystore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mail/src') diff --git a/mail/src/leap/mail/imap/memorystore.py b/mail/src/leap/mail/imap/memorystore.py index 04e0af6..3f3cf83 100644 --- a/mail/src/leap/mail/imap/memorystore.py +++ b/mail/src/leap/mail/imap/memorystore.py @@ -163,7 +163,7 @@ class MemoryStore(object): {'mbox-a': 42, 'mbox-b': 23} """ - self._last_uid = {} + self._last_uid = defaultdict(lambda: 0) """ known-uids keeps a count of the uids that soledad knows for a given -- cgit v1.2.3