From 97ab599dd8aebd14e6f7369a59d415fdeca914bc Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Fri, 28 Mar 2014 22:37:38 +0100 Subject: Fix EOF Merged vuolter/pyload@2635efd --- module/network/Browser.py | 1 - module/network/Bucket.py | 1 - module/network/HTTPChunk.py | 2 +- module/network/HTTPRequest.py | 1 - 4 files changed, 1 insertion(+), 4 deletions(-) (limited to 'module/network') diff --git a/module/network/Browser.py b/module/network/Browser.py index d68a23687..8c9dfa737 100644 --- a/module/network/Browser.py +++ b/module/network/Browser.py @@ -143,4 +143,3 @@ if __name__ == "__main__": #browser.getPage("http://google.com/search?q=bar") browser.httpDownload("http://speedtest.netcologne.de/test_10mb.bin", "test_10mb.bin") - diff --git a/module/network/Bucket.py b/module/network/Bucket.py index add3861d6..727d28eb9 100644 --- a/module/network/Bucket.py +++ b/module/network/Bucket.py @@ -58,4 +58,3 @@ class Bucket: delta = self.rate * (now - self.timestamp) self.tokens = min(self.rate, self.tokens + delta) self.timestamp = now - diff --git a/module/network/HTTPChunk.py b/module/network/HTTPChunk.py index 91a1b06e8..14c24be15 100644 --- a/module/network/HTTPChunk.py +++ b/module/network/HTTPChunk.py @@ -290,4 +290,4 @@ class HTTPChunk(HTTPRequest): """ closes everything, unusable after this """ if self.fp: self.fp.close() self.c.close() - if hasattr(self, "p"): del self.p \ No newline at end of file + if hasattr(self, "p"): del self.p diff --git a/module/network/HTTPRequest.py b/module/network/HTTPRequest.py index 6b4df665d..302ed75df 100644 --- a/module/network/HTTPRequest.py +++ b/module/network/HTTPRequest.py @@ -303,4 +303,3 @@ if __name__ == "__main__": url = "http://pyload.org" c = HTTPRequest() print c.load(url) - -- cgit v1.2.3