summaryrefslogtreecommitdiffstats
path: root/module/threads
diff options
context:
space:
mode:
authorGravatar X3n0m0rph59 <X3n0m0rph59@googlemail.com> 2012-04-22 19:56:17 +0200
committerGravatar X3n0m0rph59 <X3n0m0rph59@googlemail.com> 2012-04-22 19:56:17 +0200
commitb40b32ee05f611323a7827fad2a25fa0a28dcb24 (patch)
tree60f7f00e4be25942230668f43cb11a30b6fd10e6 /module/threads
parentFixed spelling in the source (diff)
downloadpyload-b40b32ee05f611323a7827fad2a25fa0a28dcb24.tar.xz
a huge pile of spelling fixes
Diffstat (limited to 'module/threads')
-rw-r--r--module/threads/BaseThread.py2
-rw-r--r--module/threads/DownloadThread.py4
-rw-r--r--module/threads/ThreadManager.py10
3 files changed, 8 insertions, 8 deletions
diff --git a/module/threads/BaseThread.py b/module/threads/BaseThread.py
index f6fac46a0..7a0ee5ee4 100644
--- a/module/threads/BaseThread.py
+++ b/module/threads/BaseThread.py
@@ -131,6 +131,6 @@ class BaseThread(Thread):
return ""
def clean(self, pyfile):
- """ set thread unactive and release pyfile """
+ """ set thread inactive and release pyfile """
self.active = False
pyfile.release()
diff --git a/module/threads/DownloadThread.py b/module/threads/DownloadThread.py
index 8166191af..7555a82ce 100644
--- a/module/threads/DownloadThread.py
+++ b/module/threads/DownloadThread.py
@@ -58,7 +58,7 @@ class DownloadThread(BaseThread):
try:
if not pyfile.hasPlugin(): continue
- #this pyfile was deleted while queueing
+ #this pyfile was deleted while queuing
pyfile.plugin.checkForSameFiles(starting=True)
self.log.info(_("Download starts: %s" % pyfile.name))
@@ -212,7 +212,7 @@ class DownloadThread(BaseThread):
def put(self, job):
- """assing job to thread"""
+ """assign a job to the thread"""
self.queue.put(job)
diff --git a/module/threads/ThreadManager.py b/module/threads/ThreadManager.py
index b3a1e8c6c..c3da13430 100644
--- a/module/threads/ThreadManager.py
+++ b/module/threads/ThreadManager.py
@@ -82,7 +82,7 @@ class ThreadManager:
self.threads.append(thread)
def createInfoThread(self, data, pid):
- """ start a thread whichs fetches online status and other infos """
+ """ start a thread which fetches online status and other info's """
self.timestamp = time() + 5 * 60
if data: InfoThread(self, data, pid)
@@ -134,7 +134,7 @@ class ThreadManager:
def work(self):
- """run all task which have to be done (this is for repetivive call by core)"""
+ """run all task which have to be done (this is for repetetive call by core)"""
try:
self.tryReconnect()
except Exception, e:
@@ -231,7 +231,7 @@ class ThreadManager:
return ip
def checkThreadCount(self):
- """checks if there are need for increasing or reducing thread count"""
+ """checks if there is a need for increasing or reducing thread count"""
if len(self.threads) == self.core.config.get("download", "max_downloads"):
return True
@@ -244,7 +244,7 @@ class ThreadManager:
def cleanPycurl(self):
- """ make a global curl cleanup (currently ununused) """
+ """ make a global curl cleanup (currently unused) """
if self.processingIds():
return False
pycurl.global_cleanup()
@@ -255,7 +255,7 @@ class ThreadManager:
def assignJob(self):
- """assing a job to a thread if possible"""
+ """assign a job to a thread if possible"""
if self.pause or not self.core.api.isTimeDownload(): return