jenkins-bot submitted this change.

View Change

Approvals: Matěj Suchánek: Looks good to me, approved jenkins-bot: Verified
[fix] Use items() to iterate over a dictionary if values are used

Change-Id: I19fc324cbcbb329ce244f7b78198890cee0dc61a
---
M pywikibot/page/__init__.py
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pywikibot/page/__init__.py b/pywikibot/page/__init__.py
index f0585c5..ed09333 100644
--- a/pywikibot/page/__init__.py
+++ b/pywikibot/page/__init__.py
@@ -2113,8 +2113,8 @@
if k < 1 or k >= i:
named[str(k)] = intkeys[k]
break
- for name in named:
- positional.append('%s=%s' % (name, named[name]))
+ for item in named.items():
+ positional.append('{}={}'.format(*item))
result.append((pywikibot.Page(link, self.site), positional))
return result


To view, visit change 673459. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I19fc324cbcbb329ce244f7b78198890cee0dc61a
Gerrit-Change-Number: 673459
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Matěj Suchánek <matejsuchanek97@gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged