summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/AntiVirus.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-15 21:06:10 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-24 22:38:26 +0200
commit5a139055ae658d3a05cbb658cbd66aeae0d01db5 (patch)
treeb283d2f470fe2a4115474959e4982a59bc686067 /module/plugins/hooks/AntiVirus.py
parentMerge pull request #1537 from GammaC0de/patch-1 (diff)
downloadpyload-5a139055ae658d3a05cbb658cbd66aeae0d01db5.tar.xz
Spare code cosmetics
Diffstat (limited to 'module/plugins/hooks/AntiVirus.py')
-rw-r--r--module/plugins/hooks/AntiVirus.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hooks/AntiVirus.py b/module/plugins/hooks/AntiVirus.py
index 09872650f..1faa6ebe3 100644
--- a/module/plugins/hooks/AntiVirus.py
+++ b/module/plugins/hooks/AntiVirus.py
@@ -10,7 +10,7 @@ except ImportError:
pass
from module.plugins.internal.Hook import Hook, Expose, threaded
-from module.utils import fs_encode, save_join
+from module.utils import fs_encode, save_join as fs_join
class AntiVirus(Hook):
@@ -108,11 +108,11 @@ class AntiVirus(Hook):
thread.finishFile(pyfile)
- def downloadFinished(self, pyfile):
+ def download_finished(self, pyfile):
return self.scan(pyfile)
- def downloadFailed(self, pyfile):
+ def download_failed(self, pyfile):
#: Check if pyfile is still "failed",
# maybe might has been restarted in meantime
if pyfile.status == 8 and self.getConfig('scanfailed'):