From 6b5445c40996b8803da43ae95bc1ab2b5f4c0a46 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sun, 16 Nov 2014 00:15:58 +0100 Subject: Spare code cosmetics --- pyload/network/HTTPRequest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pyload/network/HTTPRequest.py') 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) -- cgit v1.2.3