[Pywikibot-commits] [Gerrit] backport Ibd85350cda6b511afd3b7a335abe20bd4ac0899e from core - change (pywikibot/compat)