[PATCH 2/4] threading: rename threadslist to accountThreads

Nicolas Sebrecht nicolas.s-dev at laposte.net
Tue May 17 01:45:58 BST 2016


Signed-off-by: Nicolas Sebrecht <nicolas.s-dev at laposte.net>
---
 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."""
 
-- 
2.7.4





More information about the OfflineIMAP-project mailing list