jenkins-bot submitted this change.

View Change

Approvals: Mpaa: Looks good to me, approved jenkins-bot: Verified
[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.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I2b865987c2f1b8ecaa06032d40464d51fe81ea53
Gerrit-Change-Number: 637839
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Mpaa <mpaa.wiki@gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged