Skip to content

Commit ee1d590

Browse files
committed
Fix bad slice port in imapfdw
1 parent eab0e4b commit ee1d590

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/multicorn/imapfdw.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
from email.header import decode_header
99

1010
from imapclient import IMAPClient
11+
from itertools import islice
12+
1113
try:
1214
from itertools import zip_longest
1315
except ImportError:
@@ -35,7 +37,7 @@ def compact_fetch(messages):
3537
3638
"""
3739
first_i = messages[0]
38-
for (i, inext) in zip_longest(messages, slice(messages, 1, None)):
40+
for (i, inext) in zip_longest(messages, islice(messages, 1, None)):
3941
if inext == i + 1:
4042
continue
4143
elif first_i != i:

0 commit comments

Comments
 (0)