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