summaryrefslogtreecommitdiffstats
path: root/pyload/network/HTTPRequest.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-16 00:15:58 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-16 00:15:58 +0100
commit6b5445c40996b8803da43ae95bc1ab2b5f4c0a46 (patch)
treed8ccaf123d56bb11fc1d67cb224aaa8d7298e67b /pyload/network/HTTPRequest.py
parent[ConfigParser] getPlugin return str (diff)
downloadpyload-6b5445c40996b8803da43ae95bc1ab2b5f4c0a46.tar.xz
Spare code cosmetics
Diffstat (limited to 'pyload/network/HTTPRequest.py')
-rw-r--r--pyload/network/HTTPRequest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyload/network/HTTPRequest.py b/pyload/network/HTTPRequest.py
index 0384da5ff..c1727c0c5 100644
--- a/pyload/network/HTTPRequest.py
+++ b/pyload/network/HTTPRequest.py
@@ -167,7 +167,7 @@ class HTTPRequest:
self.c.setopt(pycurl.POSTFIELDS, post)
else:
- post = [(x, y.encode('utf8') if type(y) == unicode else y ) for x, y in post.iteritems()]
+ post = [(x, y.encode('utf8') if type(y) == unicode else y) for x, y in post.iteritems()]
self.c.setopt(pycurl.HTTPPOST, post)
else:
self.c.setopt(pycurl.POST, 0)
@@ -285,7 +285,7 @@ class HTTPRequest:
rep = self.getResponse()
if self.abort:
- raise Abort()
+ raise Abort
with open("response.dump", "wb") as f:
f.write(rep)