diff options
-rw-r--r-- | pyload/database/FileDatabase.py | 2 | ||||
-rw-r--r-- | pyload/manager/PluginManager.py | 2 | ||||
-rw-r--r-- | pyload/plugins/addon/DownloadScheduler.py | 2 | ||||
-rw-r--r-- | pyload/plugins/base/Addon.py | 2 | ||||
-rw-r--r-- | pyload/plugins/internal/MultiHoster.py | 2 | ||||
-rw-r--r-- | tests/code_analysis.sh | 10 |
6 files changed, 5 insertions, 15 deletions
diff --git a/pyload/database/FileDatabase.py b/pyload/database/FileDatabase.py index c03136f9a..bdc0f5994 100644 --- a/pyload/database/FileDatabase.py +++ b/pyload/database/FileDatabase.py @@ -522,7 +522,7 @@ class FileHandler: self.core.pullManager.addEvent(e) def checkPackageFinished(self, pyfile): - """ checks if package is finished and calls hookmanager """ + """ checks if package is finished and calls AddonManager """ ids = self.db.getUnfinished(pyfile.packageid) if not ids or (pyfile.id in ids and len(ids) == 1): diff --git a/pyload/manager/PluginManager.py b/pyload/manager/PluginManager.py index 939b17347..57bba09a2 100644 --- a/pyload/manager/PluginManager.py +++ b/pyload/manager/PluginManager.py @@ -34,7 +34,7 @@ class PluginManager: self.plugins = {} self.createIndex() - #register for import hook + #register for import addon sys.meta_path.append(self) diff --git a/pyload/plugins/addon/DownloadScheduler.py b/pyload/plugins/addon/DownloadScheduler.py index 21b756ea6..20c5ed1e1 100644 --- a/pyload/plugins/addon/DownloadScheduler.py +++ b/pyload/plugins/addon/DownloadScheduler.py @@ -23,7 +23,7 @@ class DownloadScheduler(Addon): def setup(self): - self.cb = None # callback to scheduler job; will be by removed hookmanager when addon unloaded + self.cb = None # callback to scheduler job; will be by removed AddonManager when addon unloaded def coreReady(self): self.updateSchedule() diff --git a/pyload/plugins/base/Addon.py b/pyload/plugins/base/Addon.py index a0b8b9782..3cc152666 100644 --- a/pyload/plugins/base/Addon.py +++ b/pyload/plugins/base/Addon.py @@ -51,7 +51,7 @@ class Addon(Base): #: Provide information in dict here, usable by API `getInfo` self.info = None - #: Callback of periodical job task, used by hookmanager + #: Callback of periodical job task, used by AddonManager self.cb = None #: `AddonManager` diff --git a/pyload/plugins/internal/MultiHoster.py b/pyload/plugins/internal/MultiHoster.py index c94f87493..1781cb17f 100644 --- a/pyload/plugins/internal/MultiHoster.py +++ b/pyload/plugins/internal/MultiHoster.py @@ -172,7 +172,7 @@ class MultiHoster(Addon): del dict['new_name'] def unload(self): - """Remove override for all hosters. Scheduler job is removed by hookmanager""" + """Remove override for all hosters. Scheduler job is removed by AddonManager""" for hoster in self.supported: self.unloadHoster(hoster) diff --git a/tests/code_analysis.sh b/tests/code_analysis.sh index c853652bf..c4dc8e99a 100644 --- a/tests/code_analysis.sh +++ b/tests/code_analysis.sh @@ -13,13 +13,3 @@ pep8 $PYLOAD > $REPORT && echo "Done. Report saved to $REPORT" echo "Running pylint ..." REPORT="pylint.txt" pylint --reports=no $PYLOAD > $REPORT && echo "Done. Report saved to $REPORT" - -#echo "Running pyflakes ..." -#REPORT="pyflakes.txt" -#{ - # pyflakes to pylint syntak -# find $PYLOAD -type f -name "*.py" | egrep -v '^\./lib' | xargs pyflakes > pyflakes.log || : - # Filter warnings and strip ./ from path -# cat pyflakes.log | awk -F\: '{printf "%s:%s: [E]%s\n", $1, $2, $3}' | grep -i -E -v "'_'|pypath|webinterface|pyreq|addonmanager" > $REPORT -# sed -i 's/^.\///g' $REPORT -#} && echo "Done. Report saved to $REPORT" |