summaryrefslogtreecommitdiffstats
path: root/module/plugins/Plugin.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-09-07 23:50:03 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-09-14 10:59:52 +0200
commit4cd693b5c4f2ede4ac4928b5b433b3932d64519a (patch)
tree5a22ec483885290094ac38a06a8c3bf877856820 /module/plugins/Plugin.py
parentMerge branch 'stable' into 0.4.10 (diff)
downloadpyload-4cd693b5c4f2ede4ac4928b5b433b3932d64519a.tar.xz
save_join -> safe_join & save_path -> safe_filename
Diffstat (limited to 'module/plugins/Plugin.py')
-rw-r--r--module/plugins/Plugin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py
index 8a2554ea0..03ff58418 100644
--- a/module/plugins/Plugin.py
+++ b/module/plugins/Plugin.py
@@ -14,7 +14,7 @@ if os.name != "nt":
from itertools import islice
-from module.utils import safe_join, safe_path, fs_encode, fs_decode
+from module.utils import safe_join, safe_filename, fs_encode, fs_decode
def chunks(iterable, size):
it = iter(iterable)
@@ -503,7 +503,7 @@ class Plugin(Base):
# convert back to unicode
location = fs_decode(location)
- name = safe_path(self.pyfile.name)
+ name = safe_filename(self.pyfile.name)
filename = join(location, name)