diff options
author | 2015-02-28 22:34:54 +0100 | |
---|---|---|
committer | 2015-02-28 22:34:54 +0100 | |
commit | e9f69e9df0fd1cd484670af180d64caea53eaa5c (patch) | |
tree | b9e39821e948cb8dbe0adf79f9109f010314aef3 /pyload/plugin/addon/UpdateManager.py | |
parent | Merge branch 'stable' into 0.4.10 (diff) | |
download | pyload-e9f69e9df0fd1cd484670af180d64caea53eaa5c.tar.xz |
safe_join -> fs_join
Diffstat (limited to 'pyload/plugin/addon/UpdateManager.py')
-rw-r--r-- | pyload/plugin/addon/UpdateManager.py | 6 |
1 files changed, 3 insertions, 3 deletions
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: |