[PATCH 13/15] Replace xrange with range

Łukasz Żarnowiecki dolohow at outlook.com
Tue May 10 00:18:35 BST 2016


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

Signed-off-by: Łukasz Żarnowiecki <dolohow at outlook.com>
---
 offlineimap/folder/IMAP.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/offlineimap/folder/IMAP.py b/offlineimap/folder/IMAP.py
index 9942042..695739e 100644
--- a/offlineimap/folder/IMAP.py
+++ b/offlineimap/folder/IMAP.py
@@ -838,7 +838,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
-- 
2.8.2





More information about the OfflineIMAP-project mailing list