jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/860100 )
Change subject: Fix usage hint in a regex comment
......................................................................
Fix usage hint in a regex comment
Change-Id: If6c748a3e67dc96d5a19c414c5ba592c496dce1a
---
M pywikibot/textlib.py
1 file changed, 11 insertions(+), 1 deletion(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/textlib.py b/pywikibot/textlib.py
index e8e0af3..d7e2366 100644
--- a/pywikibot/textlib.py
+++ b/pywikibot/textlib.py
@@ -86,7 +86,8 @@
# and correctly matches the end of the file link if the wikilink contains
# [[ or ]].
# The namespace names must be substituted into this regex.
-# e.g. FILE_LINK_REGEX % 'File' or FILE_LINK_REGEX % '|'.join(site.namespaces)
+# e.g. FILE_LINK_REGEX % 'File'
+# or FILE_LINK_REGEX % '|'.join(site.namespaces[6])
FILE_LINK_REGEX = r"""
\[\[\s*
(?:%s) # namespace aliases
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/860100
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: If6c748a3e67dc96d5a19c414c5ba592c496dce1a
Gerrit-Change-Number: 860100
Gerrit-PatchSet: 2
Gerrit-Owner: Matěj Suchánek <matejsuchanek97(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
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'
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/859464
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: I8a26bf6703cc332c374e4da9b22cd5bc53775df4
Gerrit-Change-Number: 859464
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged