From 857b2f449a6805d7a1cd2f15081f844cfee102ca Mon Sep 17 00:00:00 2001 From: Nicolas Sebrecht Date: Tue, 17 May 2016 02:05:37 +0200 Subject: [PATCH] threading: rename threadslist to accountThreads Signed-off-by: Nicolas Sebrecht --- offlineimap/syncmaster.py | 4 ++-- offlineimap/threadutil.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/offlineimap/syncmaster.py b/offlineimap/syncmaster.py index 5682798..e469f2c 100644 --- a/offlineimap/syncmaster.py +++ b/offlineimap/syncmaster.py @@ -16,7 +16,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -from offlineimap.threadutil import threadlist, InstanceLimitedThread, STOP_MONITOR +from offlineimap.threadutil import accountThreads, InstanceLimitedThread, STOP_MONITOR from offlineimap.accounts import SyncableAccount from threading import currentThread @@ -37,7 +37,7 @@ def syncitall(accounts, config): # Special exit message for the monitor to stop looping so the main thread # can exit. currentThread().exit_message = STOP_MONITOR - threads = threadlist() # The collection of threads. + threads = accountThreads() # The collection of accounts threads. for accountname in accounts: # Start a new thread per account and store it in the collection. threads.add(syncaccount(config, accountname)) diff --git a/offlineimap/threadutil.py b/offlineimap/threadutil.py index 02692a1..9e7238b 100644 --- a/offlineimap/threadutil.py +++ b/offlineimap/threadutil.py @@ -41,7 +41,7 @@ def semaphorereset(semaphore, originalstate): for i in range(originalstate): semaphore.release() -class threadlist: +class accountThreads(object): """Store the list of all threads in the software so it can be used to find out what's running and what's not."""