From e9f69e9df0fd1cd484670af180d64caea53eaa5c Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sat, 28 Feb 2015 22:34:54 +0100 Subject: safe_join -> fs_join --- pyload/plugin/addon/UpdateManager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pyload/plugin/addon/UpdateManager.py') diff --git a/pyload/plugin/addon/UpdateManager.py b/pyload/plugin/addon/UpdateManager.py index 0c803bea6..fe5efe04c 100644 --- a/pyload/plugin/addon/UpdateManager.py +++ b/pyload/plugin/addon/UpdateManager.py @@ -10,7 +10,7 @@ from os import path, remove, stat from pyload.network.RequestFactory import getURL from pyload.plugin.Addon import Expose, Addon, threaded -from pyload.utils import safe_join +from pyload.utils import fs_join class UpdateManager(Addon): @@ -240,7 +240,7 @@ class UpdateManager(Addon): m = self.VERSION.search(content) if m and m.group(2) == version: - with open(safe_join("userplugins", prefix, filename), "wb") as f: + with open(fs_join("userplugins", prefix, filename), "wb") as f: f.write(content) updated.append((prefix, name)) @@ -282,7 +282,7 @@ class UpdateManager(Addon): for root in ("userplugins", path.join(pypath, "pyload", "plugins")): - filename = safe_join(root, type, file) + filename = fs_join(root, type, file) try: remove(filename) except Exception, e: -- cgit v1.2.3