diff options
Diffstat (limited to 'module/network')
-rw-r--r-- | module/network/CookieJar.py | 2 | ||||
-rw-r--r-- | module/network/HTTPChunk.py | 2 | ||||
-rw-r--r-- | module/network/HTTPDownload.py | 2 | ||||
-rw-r--r-- | module/network/HTTPRequest.py | 2 | ||||
-rw-r--r-- | module/network/RequestFactory.py | 2 | ||||
-rw-r--r-- | module/network/XDCCRequest.py | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/module/network/CookieJar.py b/module/network/CookieJar.py index c05812334..a6ae090bc 100644 --- a/module/network/CookieJar.py +++ b/module/network/CookieJar.py @@ -19,7 +19,7 @@ from time import time -class CookieJar(): +class CookieJar: def __init__(self, pluginname, account=None): self.cookies = {} self.plugin = pluginname diff --git a/module/network/HTTPChunk.py b/module/network/HTTPChunk.py index eeb27cf30..32e03ffd4 100644 --- a/module/network/HTTPChunk.py +++ b/module/network/HTTPChunk.py @@ -30,7 +30,7 @@ class WrongFormat(Exception): pass -class ChunkInfo(): +class ChunkInfo: def __init__(self, name): self.name = unicode(name) self.size = 0 diff --git a/module/network/HTTPDownload.py b/module/network/HTTPDownload.py index 4827b5e9d..767572231 100644 --- a/module/network/HTTPDownload.py +++ b/module/network/HTTPDownload.py @@ -31,7 +31,7 @@ from HTTPRequest import BadHeader from module.plugins.Plugin import Abort from module.utils import save_join, fs_encode -class HTTPDownload(): +class HTTPDownload: """ loads a url http + ftp """ def __init__(self, url, filename, get={}, post={}, referer=None, cj=None, bucket=None, diff --git a/module/network/HTTPRequest.py b/module/network/HTTPRequest.py index 4228725ec..1a7396dd5 100644 --- a/module/network/HTTPRequest.py +++ b/module/network/HTTPRequest.py @@ -44,7 +44,7 @@ class BadHeader(Exception): self.content = content -class HTTPRequest(): +class HTTPRequest: def __init__(self, cookies=None, options=None): self.c = pycurl.Curl() self.rep = StringIO() diff --git a/module/network/RequestFactory.py b/module/network/RequestFactory.py index 27b2e5606..6811b11d8 100644 --- a/module/network/RequestFactory.py +++ b/module/network/RequestFactory.py @@ -26,7 +26,7 @@ from CookieJar import CookieJar from XDCCRequest import XDCCRequest -class RequestFactory(): +class RequestFactory: def __init__(self, core): self.lock = Lock() self.core = core diff --git a/module/network/XDCCRequest.py b/module/network/XDCCRequest.py index d59be40c1..ca92a9b83 100644 --- a/module/network/XDCCRequest.py +++ b/module/network/XDCCRequest.py @@ -31,7 +31,7 @@ from select import select from module.plugins.Plugin import Abort -class XDCCRequest(): +class XDCCRequest: def __init__(self, timeout=30, proxies={}): self.proxies = proxies |