From 2ff2fb0495febe11d5015d2308d67e1d8048e597 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Thu, 10 Apr 2014 13:37:02 +0200 Subject: Some code cosmetics about commas, spaces and quotes Merges #577 --- module/network/HTTPChunk.py | 2 +- module/network/HTTPDownload.py | 2 +- module/network/HTTPRequest.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'module/network') diff --git a/module/network/HTTPChunk.py b/module/network/HTTPChunk.py index 14c24be15..eeb27cf30 100644 --- a/module/network/HTTPChunk.py +++ b/module/network/HTTPChunk.py @@ -269,7 +269,7 @@ class HTTPChunk(HTTPRequest): def stop(self): """The download will not proceed after next call of writeBody""" - self.range = [0,0] + self.range = [0, 0] self.size = 0 def resetRange(self): diff --git a/module/network/HTTPDownload.py b/module/network/HTTPDownload.py index ab2de1e94..4827b5e9d 100644 --- a/module/network/HTTPDownload.py +++ b/module/network/HTTPDownload.py @@ -286,7 +286,7 @@ class HTTPDownload(): if self.abort: raise Abort() - #sleep(0.003) #supress busy waiting - limits dl speed to (1 / x) * buffersize + #sleep(0.003) #supress busy waiting - limits dl speed to (1 / x) * buffersize self.m.select(1) for chunk in self.chunks: diff --git a/module/network/HTTPRequest.py b/module/network/HTTPRequest.py index 302ed75df..a01c3a54c 100644 --- a/module/network/HTTPRequest.py +++ b/module/network/HTTPRequest.py @@ -89,8 +89,8 @@ class HTTPRequest(): if pycurl.version_info()[7]: self.c.setopt(pycurl.ENCODING, "gzip, deflate") self.c.setopt(pycurl.HTTPHEADER, ["Accept: */*", - "Accept-Language: en-US,en", - "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7", + "Accept-Language: en-US, en", + "Accept-Charset: ISO-8859-1, utf-8;q=0.7,*;q=0.7", "Connection: keep-alive", "Keep-Alive: 300", "Expect:"]) -- cgit v1.2.3