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 <Sebastian@SSpaeth.de> Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
parent
0906d0db70
commit
63b9dcd896
@ -21,7 +21,6 @@ import random
|
|||||||
import binascii
|
import binascii
|
||||||
import re
|
import re
|
||||||
import time
|
import time
|
||||||
from copy import copy
|
|
||||||
from Base import BaseFolder
|
from Base import BaseFolder
|
||||||
from offlineimap import imaputil, imaplibutil, OfflineImapError
|
from offlineimap import imaputil, imaplibutil, OfflineImapError
|
||||||
try: # python 2.6 has set() built in
|
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,
|
# Some IMAP servers do not always return a result. Therefore,
|
||||||
# only update the ones that it talks about, and manually fix
|
# only update the ones that it talks about, and manually fix
|
||||||
# the others.
|
# the others.
|
||||||
needupdate = copy(uidlist)
|
needupdate = list(uidlist)
|
||||||
for result in r:
|
for result in r:
|
||||||
if result == None:
|
if result == None:
|
||||||
# Compensate for servers that don't return anything from
|
# Compensate for servers that don't return anything from
|
||||||
|
Loading…
Reference in New Issue
Block a user