diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-07-22 23:25:18 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-07-22 23:25:18 +0200 |
commit | fc17f3568c985e6a3441fd814d9142952b0cb761 (patch) | |
tree | 49148f259f8f68fecbe99200692228c550890b26 /pyload/plugins | |
parent | little fix for jshint (diff) | |
download | pyload-fc17f3568c985e6a3441fd814d9142952b0cb761.tar.xz |
little cleanup, added some tests
Diffstat (limited to 'pyload/plugins')
-rw-r--r-- | pyload/plugins/Request.py | 5 | ||||
-rw-r--r-- | pyload/plugins/network/CurlRequest.py | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/pyload/plugins/Request.py b/pyload/plugins/Request.py index 5652b6425..8e8e0cc6b 100644 --- a/pyload/plugins/Request.py +++ b/pyload/plugins/Request.py @@ -38,11 +38,6 @@ class Request(object): # TODO: content encoding? Could be handled globally - @property - def http(self): - print "Deprecated usage of req.http, just use req instead" - return self - def initContext(self): """ Should be used to initialize everything from given context and options """ pass diff --git a/pyload/plugins/network/CurlRequest.py b/pyload/plugins/network/CurlRequest.py index 4630403df..e5adc8be1 100644 --- a/pyload/plugins/network/CurlRequest.py +++ b/pyload/plugins/network/CurlRequest.py @@ -64,6 +64,11 @@ class CurlRequest(Request): # TODO: addAuth, addHeader + @property + def http(self): + print "Deprecated usage of req.http, just use req instead" + return self + def initContext(self): self.initHandle() |