jenkins-bot submitted this change.
[doc] Update HttpRequest doc
Change-Id: I2b865987c2f1b8ecaa06032d40464d51fe81ea53
---
M pywikibot/comms/threadedhttp.py
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/pywikibot/comms/threadedhttp.py b/pywikibot/comms/threadedhttp.py
index edb7134..d965518 100644
--- a/pywikibot/comms/threadedhttp.py
+++ b/pywikibot/comms/threadedhttp.py
@@ -24,20 +24,17 @@
class HttpRequest:
- """Object wrapper for HTTP requests that need to block origin thread.
+ """Object wrapper for HTTP requests.
self.data will be either:
- * a tuple of (dict, str) if the request was successful
+ * requests.Response object if the request was successful
* an exception
"""
@deprecated_args(headers='all_headers', uri='url')
def __init__(self, url, method='GET', params=None, body=None,
all_headers=None, callbacks=None, charset=None, **kwargs):
- """Initializer.
-
- See C{Http.request} for parameters.
- """
+ """Initializer."""
self.url = url
self.method = method
self.params = params
To view, visit change 637839. To unsubscribe, or for help writing mail filters, visit settings.