[bugfix] key, values pairs of dicts must be unpacked with items()
[bugfix] key, values pairs of dicts must be unpacked with items()

Bug: T188179
Change-Id: I539736f84619a05e46d4ddc07a2c6f8a90bbff3c

wikimedia/pywikibot-core,wikimedia/pywikibot-core