summaryrefslogtreecommitdiffstats
path: root/pyload/network
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/network')
-rw-r--r--pyload/network/HTTPDownload.py2
-rw-r--r--pyload/network/HTTPRequest.py4
-rw-r--r--pyload/network/XDCCRequest.py2
3 files changed, 4 insertions, 4 deletions
diff --git a/pyload/network/HTTPDownload.py b/pyload/network/HTTPDownload.py
index 3c804c21c..debd653ee 100644
--- a/pyload/network/HTTPDownload.py
+++ b/pyload/network/HTTPDownload.py
@@ -284,7 +284,7 @@ class HTTPDownload:
self.updateProgress()
if self.abort:
- raise Abort()
+ raise Abort
#sleep(0.003) #supress busy waiting - limits dl speed to (1 / x) * buffersize
self.m.select(1)
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)
diff --git a/pyload/network/XDCCRequest.py b/pyload/network/XDCCRequest.py
index 6011061b1..e4f880d4d 100644
--- a/pyload/network/XDCCRequest.py
+++ b/pyload/network/XDCCRequest.py
@@ -91,7 +91,7 @@ class XDCCRequest:
dccsock.close()
fh.close()
remove(filename)
- raise Abort()
+ raise Abort
self._keepAlive(irc, ircbuffer)