jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/905206 )
Change subject: [IMPR] Simplify loop in redirect.py
......................................................................
[IMPR] Simplify loop in redirect.py
Change-Id: I520bbe3aa7ef4f7317c5051e0ff4b5c6f109dec3
---
M scripts/redirect.py
1 file changed, 11 insertions(+), 2 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/redirect.py b/scripts/redirect.py
index f27ba28..b3089e9 100755
--- a/scripts/redirect.py
+++ b/scripts/redirect.py
@@ -275,8 +275,8 @@
for pagetitle in data['query']['pages'].values():
pages[pagetitle['title']] = \
'missing' not in pagetitle or 'pageid' in pagetitle
- for redirect in redirects:
- target = redirects[redirect]
+
+ for redirect, target in redirects.items():
result = None
final = None
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/905206
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: I520bbe3aa7ef4f7317c5051e0ff4b5c6f109dec3
Gerrit-Change-Number: 905206
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]