jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1324001?usp=email )

Change subject: unidata: Return exception mapping directly
......................................................................

unidata: Return exception mapping directly

Remove the temporary variable used only by the return statement.

Change-Id: Ia35c4bc4a933f2f921d99e4462acc92f2246299c
---
M scripts/maintenance/unidata.py
1 file changed, 1 insertion(+), 3 deletions(-)

Approvals:
  JJMC89: Looks good to me, approved
  jenkins-bot: Verified




diff --git a/scripts/maintenance/unidata.py b/scripts/maintenance/unidata.py
index a832280..857563f 100755
--- a/scripts/maintenance/unidata.py
+++ b/scripts/maintenance/unidata.py
@@ -74,14 +74,12 @@
     parsed_text = result['parse']['text']['*']
     titles = findall(r'title="[^:]*:(.)', parsed_text)

-    site_excepts = {
+    return {
         orig: title
         for orig, upper, title in zip(chars, uppers, titles)
         if upper != title
     }

-    return site_excepts
-

 def threads_target(q) -> None:
     """Thread processing a single site."""

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1324001?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ia35c4bc4a933f2f921d99e4462acc92f2246299c
Gerrit-Change-Number: 1324001
Gerrit-PatchSet: 2
Gerrit-Owner: Mahveotm <[email protected]>
Gerrit-Reviewer: JJMC89 <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to