jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/852123 )

Change subject: [FIX] Fix string concatenation in interwiki.py
......................................................................

[FIX] Fix string concatenation in interwiki.py

Bug: T322180
Change-Id: I53ae104a5aea14741385354469fa8c81eb88547c
---
M scripts/interwiki.py
1 file changed, 4 insertions(+), 4 deletions(-)

Approvals:
  Matěj Suchánek: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/scripts/interwiki.py b/scripts/interwiki.py
index 551fb3d..c70e6ca 100755
--- a/scripts/interwiki.py
+++ b/scripts/interwiki.py
@@ -1293,7 +1293,7 @@
         """Return True if all the work for this subject has completed."""
         return not self.todo

-    def problem(self, txt, createneed: bool = True) -> None:
+    def problem(self, txt: str, createneed: bool = True) -> None:
         """Report a problem with the resolution of this subject."""
         pywikibot.error(txt)
         self.confirm = True
@@ -1328,7 +1328,7 @@
                 if site != self.origin.site:
                     new[site].append(page)
                 elif page != self.origin:
-                    self.problem('Found link to ' + page)
+                    self.problem(f'Found link to {page}')
                     self.whereReport(page)
                     errorCount += 1

@@ -1336,7 +1336,7 @@
         for site, pages in new.items():
             if len(pages) > 1:
                 errorCount += 1
-                self.problem('Found more than one link for ' + site)
+                self.problem(f'Found more than one link for {site}')

         if not errorCount and not self.conf.select:
             # no errors, so all lists have only one item
@@ -1359,7 +1359,7 @@
                 continue

             pywikibot.info('=' * 30)
-            pywikibot.info('Links to ' + site)
+            pywikibot.info(f'Links to {site}')
             for i, page2 in enumerate(pages, 1):
                 pywikibot.info(f'  ({i}) Found link to {page2} in:')
                 self.whereReport(page2, indent=8)

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/852123
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: I53ae104a5aea14741385354469fa8c81eb88547c
Gerrit-Change-Number: 852123
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: D3r1ck <[email protected]>
Gerrit-Reviewer: D3r1ck01 <[email protected]>
Gerrit-Reviewer: Matěj Suchánek <[email protected]>
Gerrit-Reviewer: Prod <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to