jenkins-bot submitted this change.
[IMPR] <<default>> color token can be omitted at the end of io function
Change-Id: I60f02fb61a7d4b596733265d859f04c2c568f2c4
---
M scripts/commons_information.py
M scripts/fixing_redirects.py
M scripts/imagetransfer.py
M scripts/misspelling.py
4 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/scripts/commons_information.py b/scripts/commons_information.py
index c67ead8..c98fca4 100755
--- a/scripts/commons_information.py
+++ b/scripts/commons_information.py
@@ -131,12 +131,10 @@
pywikibot.info(value)
langs = self.detect_langs(value)
if langs:
- pywikibot.info(
- '<<lightblue>>Hints from langdetect:<<default>>')
+ pywikibot.info('<<lightblue>>Hints from langdetect:')
for language in langs:
pywikibot.info(
- '<<lightblue>>{obj.lang}: {obj.prob}<<default>>'
- .format(obj=language))
+ f'<<lightblue>>{language.lang}: {language.prob}')
lang = pywikibot.input(
'Enter the language of the displayed text:').strip()
if lang != '':
diff --git a/scripts/fixing_redirects.py b/scripts/fixing_redirects.py
index 39481b6..e06e11b 100755
--- a/scripts/fixing_redirects.py
+++ b/scripts/fixing_redirects.py
@@ -240,7 +240,7 @@
if mysite.sitename == 'wikipedia:nl':
pywikibot.info(
'<<lightred>>There is consensus on the Dutch Wikipedia that '
- 'bots should not be used to fix redirects.<<default>>')
+ 'bots should not be used to fix redirects.')
return
if featured:
diff --git a/scripts/imagetransfer.py b/scripts/imagetransfer.py
index 5c0d69a..bb5ae71 100755
--- a/scripts/imagetransfer.py
+++ b/scripts/imagetransfer.py
@@ -321,7 +321,7 @@
# remove the selected image from the list
imagelist.pop(todo)
else:
- pywikibot.info('<<yellow>>No such image number.<<default>>')
+ pywikibot.info('<<yellow>>No such image number.')
def transfer_allowed(self, image) -> bool:
"""Check whether transfer is allowed."""
diff --git a/scripts/misspelling.py b/scripts/misspelling.py
index 7bc5c16..71cca13 100755
--- a/scripts/misspelling.py
+++ b/scripts/misspelling.py
@@ -64,7 +64,7 @@
if cat is not None]
if templates:
- pywikibot.info('<<yellow>>Working on templates...<<default>>')
+ pywikibot.info('<<yellow>>Working on templates...')
if isinstance(templates, str):
templates = (templates, )
@@ -80,7 +80,7 @@
'-start parameter is not supported on this wiki\n'
'because templates are used for misspellings.')
elif categories:
- pywikibot.info('<<yellow>>Working on categories...<<default>>')
+ pywikibot.info('<<yellow>>Working on categories...')
generators = (
pagegenerators.CategorizedPageGenerator(
cat, recurse=True, start=self.opt.start
To view, visit change 835649. To unsubscribe, or for help writing mail filters, visit settings.