[PATCH 2/4] No need to import InstanceLimitedThread sepcifically

Sebastian Spaeth Sebastian at SSpaeth.de
Wed Dec 22 14:27:18 GMT 2010


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

Signed-off-by: Sebastian Spaeth <Sebastian at SSpaeth.de>
---
 offlineimap/folder/Base.py |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/offlineimap/folder/Base.py b/offlineimap/folder/Base.py
index a79dcf8..d489c11 100644
--- a/offlineimap/folder/Base.py
+++ b/offlineimap/folder/Base.py
@@ -18,7 +18,6 @@
 
 from threading import *
 from offlineimap import threadutil
-from offlineimap.threadutil import InstanceLimitedThread
 from offlineimap.ui import getglobalui
 import os.path
 import re
@@ -250,7 +249,7 @@ class BaseFolder:
         for uid in uidlist:
             if usethread and usethread.suggeststhreads():
                 usethread.waitforthread()
-                thread = InstanceLimitedThread(\
+                thread = threadutil.InstanceLimitedThread(\
                     usethread.getcopyinstancelimit(),
                     target = self.syncmessagesto_neguid_msg,
                     name = "New msg sync from %s" % self.getvisiblename(),
@@ -309,7 +308,7 @@ class BaseFolder:
             if not uid in dest_messagelist:
                 if self.suggeststhreads():
                     self.waitforthread()
-                    thread = InstanceLimitedThread(\
+                    thread = threadutil.InstanceLimitedThread(\
                         self.getcopyinstancelimit(),
                         target = self.copymessageto,
                         name = "Copy message %d from %s" % (uid,
-- 
1.7.1





More information about the OfflineIMAP-project mailing list