jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/859464 )
Change subject: [IMPR] Fix spelling mistake and don't print lang codes if force is True ......................................................................
[IMPR] Fix spelling mistake and don't print lang codes if force is True
Change-Id: I8a26bf6703cc332c374e4da9b22cd5bc53775df4 --- M pywikibot/scripts/generate_user_files.py 1 file changed, 12 insertions(+), 2 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/scripts/generate_user_files.py b/pywikibot/scripts/generate_user_files.py index 6d4018e..3a05b1b 100755 --- a/pywikibot/scripts/generate_user_files.py +++ b/pywikibot/scripts/generate_user_files.py @@ -144,8 +144,9 @@ pywikibot.info(f'The only known site code: {known_langs[0]}') default_lang = known_langs[0] else: - pywikibot.info('This is the list of known site oodes:') - pywikibot.info(', '.join(known_langs)) + if not force: + pywikibot.info('This is the list of known site codes:') + pywikibot.info(', '.join(known_langs)) if default_lang not in known_langs: if default_lang != 'en' and 'en' in known_langs: default_lang = 'en'
pywikibot-commits@lists.wikimedia.org