From 63b9dcd8964927661966db5ac918ee023865ff6f Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Tue, 6 Sep 2011 13:27:48 +0200 Subject: [PATCH] folder.IMAP: Don't import copy It is not needed. list(ALIST) will create a new copy of the list just fine. Signed-off-by: Sebastian Spaeth Signed-off-by: Nicolas Sebrecht --- offlineimap/folder/IMAP.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/offlineimap/folder/IMAP.py b/offlineimap/folder/IMAP.py index 2774136..896ab05 100644 --- a/offlineimap/folder/IMAP.py +++ b/offlineimap/folder/IMAP.py @@ -21,7 +21,6 @@ import random import binascii import re import time -from copy import copy from Base import BaseFolder from offlineimap import imaputil, imaplibutil, OfflineImapError try: # python 2.6 has set() built in @@ -653,7 +652,7 @@ class IMAPFolder(BaseFolder): # Some IMAP servers do not always return a result. Therefore, # only update the ones that it talks about, and manually fix # the others. - needupdate = copy(uidlist) + needupdate = list(uidlist) for result in r: if result == None: # Compensate for servers that don't return anything from