Replace xrange with range

xrange was removed in Python3 while range exists in boths versions.

Signed-off-by: Łukasz Żarnowiecki <dolohow@outlook.com>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Łukasz Żarnowiecki 2016-05-08 17:32:51 +02:00 committed by Nicolas Sebrecht
parent a3bd5d4d38
commit 5476b68c25

View File

@ -839,7 +839,7 @@ class IMAPFolder(BaseFolder):
def __processmessagesflags(self, operation, uidlist, flags):
# Hack for those IMAP servers with a limited line length
batch_size = 100
for i in xrange(0, len(uidlist), batch_size):
for i in range(0, len(uidlist), batch_size):
self.__processmessagesflags_real(operation,
uidlist[i:i + batch_size], flags)
return