folder/Base.py: No need to import InstanceLimitedThread explicitely

We already import threadutil, so no need to also import
threadutil.InstanceLimitedThread separately.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Sebastian Spaeth 2011-01-10 10:02:21 +01:00 committed by Nicolas Sebrecht
parent ff3eb17b0f
commit a6b2b8014f

View File

@ -18,9 +18,9 @@
from threading import * from threading import *
from offlineimap import threadutil from offlineimap import threadutil
from offlineimap.threadutil import InstanceLimitedThread
from offlineimap.ui import UIBase from offlineimap.ui import UIBase
import os.path, re import os.path
import re
import sys import sys
class BaseFolder: class BaseFolder:
@ -248,7 +248,7 @@ class BaseFolder:
for uid in uidlist: for uid in uidlist:
if usethread and usethread.suggeststhreads(): if usethread and usethread.suggeststhreads():
usethread.waitforthread() usethread.waitforthread()
thread = InstanceLimitedThread(\ thread = threadutil.InstanceLimitedThread(\
usethread.getcopyinstancelimit(), usethread.getcopyinstancelimit(),
target = self.syncmessagesto_neguid_msg, target = self.syncmessagesto_neguid_msg,
name = "New msg sync from %s" % self.getvisiblename(), name = "New msg sync from %s" % self.getvisiblename(),
@ -307,7 +307,7 @@ class BaseFolder:
if not uid in dest_messagelist: if not uid in dest_messagelist:
if self.suggeststhreads(): if self.suggeststhreads():
self.waitforthread() self.waitforthread()
thread = InstanceLimitedThread(\ thread = threadutil.InstanceLimitedThread(\
self.getcopyinstancelimit(), self.getcopyinstancelimit(),
target = self.copymessageto, target = self.copymessageto,
name = "Copy message %d from %s" % (uid, name = "Copy message %d from %s" % (uid,