jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/673459 )
Change subject: [fix] Use items() to iterate over a dictionary if values are
used
......................................................................
[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(-)
Approvals:
Matěj Suchánek: Looks good to me, approved
jenkins-bot: Verified
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 https://gerrit.wikimedia.org/r/c/pywikibot/core/+/673459
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I19fc324cbcbb329ce244f7b78198890cee0dc61a
Gerrit-Change-Number: 673459
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Matěj Suchánek <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits