summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-13 01:18:18 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-13 01:18:18 +0100
commit11469d4c079986445eb516f2872836671cfc20cd (patch)
tree00964dc1d38cfbd8e685ab6dac64e0ec669f6003
parentFix pyload __init__ (diff)
downloadpyload-11469d4c079986445eb516f2872836671cfc20cd.tar.xz
Code fixes
-rw-r--r--pyload/network/HTTPRequest.py4
-rw-r--r--pyload/webui/__init__.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/pyload/network/HTTPRequest.py b/pyload/network/HTTPRequest.py
index 2de6ff52b..2f49fbe91 100644
--- a/pyload/network/HTTPRequest.py
+++ b/pyload/network/HTTPRequest.py
@@ -21,7 +21,7 @@ def myquote(url):
def myurlencode(data):
data = dict(data)
- return urlencode(dict(encode(x), encode(y) for x, y in data.iteritems()))
+ return urlencode(dict((encode(x), encode(y)) for x, y in data.iteritems()))
bad_headers = range(400, 404) + range(405, 418) + range(500, 506)
@@ -156,7 +156,7 @@ class HTTPRequest(object):
self.c.setopt(pycurl.POSTFIELDS, post)
else:
- post = [(x, encode(y) for x, y in post.iteritems()]
+ post = [(x, encode(y)) for x, y in post.iteritems()]
self.c.setopt(pycurl.HTTPPOST, post)
else:
self.c.setopt(pycurl.POST, 0)
diff --git a/pyload/webui/__init__.py b/pyload/webui/__init__.py
index 925ab9cb6..0d2f1ca36 100644
--- a/pyload/webui/__init__.py
+++ b/pyload/webui/__init__.py
@@ -8,7 +8,7 @@ import os
from os.path import join, abspath, dirname, exists
from os import makedirs
-THEME_DIR = abspath(join(dirname(__file__), "themes"))
+THEME_DIR = abspath(join(dirname(__file__), "themes"))
PYLOAD_DIR = abspath(join(THEME_DIR, "..", "..", ".."))
sys.path.append(PYLOAD_DIR)