diff options
Diffstat (limited to 'pyload')
| -rw-r--r-- | pyload/network/HTTPRequest.py | 4 | ||||
| -rw-r--r-- | pyload/webui/__init__.py | 2 | 
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) | 
