[PATCH 11/15] Do not encode elements of list
Łukasz Żarnowiecki
dolohow at outlook.com
Tue May 10 00:18:33 BST 2016
Signed-off-by: Łukasz Żarnowiecki <dolohow at outlook.com>
---
offlineimap/imaplib2.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/offlineimap/imaplib2.py b/offlineimap/imaplib2.py
index 2ff06c1..a242e6c 100755
--- a/offlineimap/imaplib2.py
+++ b/offlineimap/imaplib2.py
@@ -2337,7 +2337,7 @@ class _IdleCont(object):
MonthNames = [None, 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
-Mon2num = dict(list(zip((x.encode() for x in MonthNames[1:]), list(range(1, 13)))))
+Mon2num = dict(list(zip((x for x in MonthNames[1:]), list(range(1, 13)))))
InternalDate = re.compile(r'.*INTERNALDATE "'
r'(?P<day>[ 0123][0-9])-(?P<mon>[A-Z][a-z][a-z])-(?P<year>[0-9][0-9][0-9][0-9])'
--
2.8.2
More information about the OfflineIMAP-project
mailing list