Pywikibot: Enhance http module to perform urlencoding
Currently urlencoding is done by callers of the Pywikibot http module.
The relevant functions in the http module should accept params
and data
, like requests.get
. Specifically functions _enqueue
and fetch
, and less important request
.
http_tests.py should be enhance to rigorously test the new functionality, using dry tests (no network) and live https://httpbin.org tests.
Pywikibot is a Python-based framework to write bots for MediaWiki. See https://www.mediawiki.org/wiki/Manual:Pywikibot for more information, and https://www.mediawiki.org/wiki/Manual:Pywikibot/PAWS for a short online interactive tutorial. Patches can be submitted via Gerrit (you need a MediaWiki.org account). More documentation on Gerrit can be found at https://www.mediawiki.org/wiki/Manual:Pywikibot/Gerrit. After you have successfully claimed this task on this site please do use the task in Phabricator for communication instead of this site. This allows more PWB developers to be reached! General development questions can be asked on the Pywikibot mailing list at https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l and the #pywikibot IRC channel (see https://www.mediawiki.org/wiki/MediaWiki_on_IRC).