Re-apply changes from r8839 which was mostly reverted in r8848 (per CR of xqt).
Re-apply changes from r8839 which was mostly reverted in r8848 (per CR of xqt).

(automatic submodule update by svn2git)

https://mediawiki.org/wiki/Special:Code/pywikipedia/8849

h4ck3rm1k3/pywikibot-core,valhallasw/pywikibot-core,smalyshev/pywikibot-core,Darkdadaah/pywikibot-core,PersianWikipedia/pywikibot-core,VcamX/pywikibot-core,npdoty/pywikibot,jayvdb/pywikibot-core,hasteur/g13bot_tools_new,happy5214/pywikibot-core,npdoty/pywikibot,icyflame/batman,emijrp/pywikibot-core,TridevGuha/pywikibot-core,happy5214/pywikibot-core,magul/pywikibot-core,h4ck3rm1k3/pywikibot-core,hasteur/g13bot_tools_new,wikimedia/pywikibot-core,trishnaguha/pywikibot-core,wikimedia/pywikibot-core,darthbhyrava/pywikibot-local,jayvdb/pywikibot-core,xZise/pywikibot-core,Darkdadaah/pywikibot-core,magul/pywikibot-core,hasteur/g13bot_tools_new