Pywikibot: Update APISite.is_uploaddisabled to use API siteinfo
See https://phabricator.wikimedia.org/T121041 for more info.
APISite.is_uploaddisabled
attempts an upload to determine whether uploads are enabled. Recently the API was improved to expose this information, so APISite.is_uploaddisabled
can use this new metadata found in APISite.siteinfo
as a more efficient mechanism when the MediaWiki site has this metadata (the old mechanism is needed for backwards compatibility).
Pywikibot is a Python-based framework to write bots for MediaWiki. See https://www.mediawiki.org/wiki/Manual:Pywikibot for more info. Patches can be submitted via Gerrit (you need a MediaWiki.org account). See 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. This allows more PWB developers to be reached! General dev questions can be asked on https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l and the #pywikibot IRC channel (see https://www.mediawiki.org/wiki/MediaWiki_on_IRC ).