jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/551781 )
Change subject: [bugfix] Fix RuntimeError in Python 3.8 ......................................................................
[bugfix] Fix RuntimeError in Python 3.8
Bug: T238637 Change-Id: I5f89d04a2c47691120619d85d90f9106bc6ff84f --- M pywikibot/page.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: D3r1ck01: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/page.py b/pywikibot/page.py index 1a1024a..aa64aad 100644 --- a/pywikibot/page.py +++ b/pywikibot/page.py @@ -4165,7 +4165,7 @@ @return: the altered dict from parameter data. @rtype: dict """ - for key in data: + for key in list(data): if isinstance(key, pywikibot.site.BaseSite): data[key.lang] = data[key] del data[key]
pywikibot-commits@lists.wikimedia.org