diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-12-25 22:41:08 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-12-25 22:41:08 +0100 |
commit | a52a837af18e73b9ba409ee4777f3e21ff841de9 (patch) | |
tree | cce5d86ff16034be2cff929a5baad44d60782f43 /module/plugins | |
parent | great fixes http://geekandpoke.typepad.com/.a/6a00d8341d3df553ef0134872dea109... (diff) | |
download | pyload-a52a837af18e73b9ba409ee4777f3e21ff841de9.tar.xz |
backward comp. fixes
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/Plugin.py | 2 | ||||
-rw-r--r-- | module/plugins/hooks/MultiHome.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py index ac66d6243..23c9bbf6d 100644 --- a/module/plugins/Plugin.py +++ b/module/plugins/Plugin.py @@ -300,7 +300,7 @@ class Plugin(object): makedirs(join("tmp", self.__name__)) f = open(join("tmp", self.__name__, "%s_line%s.dump.html" % (frame.f_back.f_code.co_name, frame.f_back.f_lineno)), "wb") - f.write(res) + f.write(res.encode("utf8")) f.close() return res diff --git a/module/plugins/hooks/MultiHome.py b/module/plugins/hooks/MultiHome.py index 3f41938dc..b9b6ac5b7 100644 --- a/module/plugins/hooks/MultiHome.py +++ b/module/plugins/hooks/MultiHome.py @@ -55,7 +55,7 @@ class MultiHome(Hook): iface.useFor(pluginName, account) requestFactory.iface = iface.adress self.log.debug("Multihome: using address: "+iface.adress) - return oldGetRequest(pluginName, account, type) + return oldGetRequest(pluginName, account) requestFactory.getRequest = getRequest def bestInterface(self, pluginName, account): |