lists.wikimedia.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
List overview
Download
Pywikibot-commits
April 2023
----- 2024 -----
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
pywikibot-commits@lists.wikimedia.org
1 participants
130 discussions
Start a n
N
ew thread
[Gerrit] ...core[master]: [bugfix] Fix url2string parsing for multiple encodings
by jenkins-bot (Code Review)
jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/910826
) Change subject: [bugfix] Fix url2string parsing for multiple encodings ...................................................................... [bugfix] Fix url2string parsing for multiple encodings Bug: T335224 Change-Id: I64305e958558645a74353c7cdfe090e8751d00ae --- M pywikibot/tools/chars.py 1 file changed, 23 insertions(+), 1 deletion(-) Approvals: Matěj Suchánek: Looks good to me, approved jenkins-bot: Verified diff --git a/pywikibot/tools/chars.py b/pywikibot/tools/chars.py index 6421628..f4d7a95 100644 --- a/pywikibot/tools/chars.py +++ b/pywikibot/tools/chars.py @@ -100,10 +100,21 @@ Uses the first encoding that doesn't cause an error. + **Example:** + >>> url2string('/El%20Ni%C3%B1o/') + '/El Niño/' + >>> url2string('/El%20Ni%C3%B1o/', 'ascii') + Traceback (most recent call last): + ... + UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 6:... + >>> url2string('/El%20Ni%C3%B1o/', ['ascii', 'utf-8']) + '/El Niño/' + :param title: URL-encoded character data to convert :param encodings: Encodings to attempt to use during conversion. :raise UnicodeError: Could not convert using any encoding. + :raise LookupError: unknown encoding """ if isinstance(encodings, str): encodings = [encodings] @@ -113,11 +124,12 @@ try: t = title.encode(enc) t = unquote_to_bytes(t) + result = t.decode(enc) except UnicodeError as e: if not first_exception: first_exception = e else: - return t.decode(enc) + return result # Couldn't convert, raise the first exception raise first_exception -- To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/910826
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: I64305e958558645a74353c7cdfe090e8751d00ae Gerrit-Change-Number: 910826 Gerrit-PatchSet: 1 Gerrit-Owner: Xqt <info(a)gno.de> Gerrit-Reviewer: Matěj Suchánek <matejsuchanek97(a)gmail.com> Gerrit-Reviewer: jenkins-bot Gerrit-MessageType: merged
1 year, 1 month
1
0
0
0
[Gerrit] ...core[master]: [doc] Update documentation for tools
by jenkins-bot (Code Review)
jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/910824
) Change subject: [doc] Update documentation for tools ...................................................................... [doc] Update documentation for tools - add some examples for chars.string_to_ascii_html() and chars.string2html() which can be tested via docstring tests - ignore some tools code from coverage Change-Id: I9811c0c1a7166933051825d30efa053345e22905 --- M pywikibot/tools/__init__.py M pywikibot/tools/chars.py M pywikibot/tools/_deprecate.py 3 files changed, 44 insertions(+), 13 deletions(-) Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified diff --git a/pywikibot/tools/__init__.py b/pywikibot/tools/__init__.py index 1c06290..74d15ae 100644 --- a/pywikibot/tools/__init__.py +++ b/pywikibot/tools/__init__.py @@ -1,6 +1,6 @@ """Miscellaneous helper functions (not wiki-dependent).""" # -# (C) Pywikibot team, 2008-2022 +# (C) Pywikibot team, 2008-2023 # # Distributed under the terms of the MIT license. # @@ -116,7 +116,7 @@ return False if version: if not hasattr(m, '__version__'): - return False + return False # pragma: no cover required_version = pkg_resources.parse_version(version) module_version = pkg_resources.parse_version(m.__version__) diff --git a/pywikibot/tools/_deprecate.py b/pywikibot/tools/_deprecate.py index 8995c86..1cb2fd9 100644 --- a/pywikibot/tools/_deprecate.py +++ b/pywikibot/tools/_deprecate.py @@ -19,7 +19,7 @@ deprecation decorators moved to _deprecate submodule """ # -# (C) Pywikibot team, 2008-2022 +# (C) Pywikibot team, 2008-2023 # # Distributed under the terms of the MIT license. # @@ -157,7 +157,7 @@ return inner_wrapper if not __debug__: - return obj + return obj # pragma: no cover return outer_wrapper @@ -254,7 +254,7 @@ else: wrapper.__doc__ = deprecation_notice - if not __debug__: + if not __debug__: # pragma: no cover return obj manage_wrapping(wrapper, obj) @@ -290,7 +290,7 @@ # When called as @deprecated, return a replacement function if without_parameters: if not __debug__: - return args[0] + return args[0] # pragma: no cover return decorator(args[0]) @@ -396,7 +396,7 @@ return obj(*__args, **__kw) if not __debug__: - return obj + return obj # pragma: no cover manage_wrapping(wrapper, obj) diff --git a/pywikibot/tools/chars.py b/pywikibot/tools/chars.py index 06e85ea..6421628 100644 --- a/pywikibot/tools/chars.py +++ b/pywikibot/tools/chars.py @@ -1,6 +1,6 @@ """Character based helper functions (not wiki-dependent).""" # -# (C) Pywikibot team, 2015-2022 +# (C) Pywikibot team, 2015-2023 # # Distributed under the terms of the MIT license. # @@ -10,7 +10,7 @@ from typing import Union from urllib.parse import unquote_to_bytes -from pywikibot.backports import List, Tuple +from pywikibot.backports import Iterable from pywikibot.tools._unidata import _category_cf @@ -45,6 +45,15 @@ def string_to_ascii_html(string: str) -> str: """Convert unicode chars of str to HTML entities if chars are not ASCII. + **Example:** + + >>> string_to_ascii_html('Python') + 'Python' + >>> string_to_ascii_html("Pywikibot's API") + "Pywikibot's API" + >>> string_to_ascii_html('Eetße Joohunndot füür Kreůßtůß') + 'Eetße Joohunndot füür Kreůßtůß' + :param string: String to update """ html = [] @@ -64,6 +73,17 @@ return it unchanged. Otherwise encode the non-ASCII characters into HTML &#; entities. + **Example:** + + >>> string2html('Referências', 'utf-8') + 'Referências' + >>> string2html('Referências', 'ascii') + 'Referências' + >>> string2html('脚注', 'euc_jp') + '脚注' + >>> string2html('脚注', 'iso-8859-1') + '脚注' + :param string: String to update :param encoding: Encoding to use """ @@ -74,10 +94,8 @@ return string_to_ascii_html(string) -def url2string( - title: str, - encodings: Union[str, List[str], Tuple[str, ...]] = 'utf-8' -) -> str: +def url2string(title: str, + encodings: Union[str, Iterable[str]] = 'utf-8') -> str: """Convert URL-encoded text to unicode using several encoding. Uses the first encoding that doesn't cause an error. -- To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/910824
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: I9811c0c1a7166933051825d30efa053345e22905 Gerrit-Change-Number: 910824 Gerrit-PatchSet: 2 Gerrit-Owner: Xqt <info(a)gno.de> Gerrit-Reviewer: Xqt <info(a)gno.de> Gerrit-Reviewer: jenkins-bot Gerrit-MessageType: merged
1 year, 1 month
1
0
0
0
[Gerrit] ...core[master]: [8.2.0d1] Update to r8.2.0d1
by Xqt (Code Review)
Xqt has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/910746
) Change subject: [8.2.0d1] Update to r8.2.0d1 ...................................................................... [8.2.0d1] Update to r8.2.0d1 - update ROADMAP and HISTORY.rst - update scripts version Change-Id: I5331b4dc20e1386e34985572e8b230d78de7bd5a --- M ROADMAP.rst M pywikibot/__metadata__.py M HISTORY.rst M scripts/__init__.py 4 files changed, 24 insertions(+), 5 deletions(-) Approvals: Xqt: Verified; Looks good to me, approved diff --git a/HISTORY.rst b/HISTORY.rst index d68ff25..b65bc8a 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -1,6 +1,15 @@ Release history =============== +8.1.1 +----- +*21 April 2023* + +* Add support for fatwikipedia (:phab:`T335021`) +* Add support for kcgwiktionary (:phab:`T334742`) +* Update for wowwiki family + + 8.1.0 ----- *16 April 2023* diff --git a/ROADMAP.rst b/ROADMAP.rst index aeeec5e..1adb1ab 100644 --- a/ROADMAP.rst +++ b/ROADMAP.rst @@ -1,9 +1,7 @@ Current release --------------- -* Add support for fatwikipedia (:phab:`T335021`) -* Add support for kcgwiktionary (:phab:`T334742`) -* Update for wowwiki family +* *(no changes yet)* Deprecations diff --git a/pywikibot/__metadata__.py b/pywikibot/__metadata__.py index a816904..350ffc0 100644 --- a/pywikibot/__metadata__.py +++ b/pywikibot/__metadata__.py @@ -11,7 +11,7 @@ __name__ = 'pywikibot' -__version__ = '8.2.0.dev0' +__version__ = '8.2.0.dev1' __description__ = 'Python MediaWiki Bot Framework' __maintainer__ = 'The Pywikibot team' __maintainer_email__ = 'pywikibot(a)lists.wikimedia.org' diff --git a/scripts/__init__.py b/scripts/__init__.py index 4be7d80..643e159 100644 --- a/scripts/__init__.py +++ b/scripts/__init__.py @@ -29,4 +29,4 @@ # # Distributed under the terms of the MIT license. # -__version__ = '8.1.0' +__version__ = '8.2.0' -- To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/910746
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: I5331b4dc20e1386e34985572e8b230d78de7bd5a Gerrit-Change-Number: 910746 Gerrit-PatchSet: 1 Gerrit-Owner: Xqt <info(a)gno.de> Gerrit-Reviewer: Xqt <info(a)gno.de> Gerrit-Reviewer: jenkins-bot Gerrit-MessageType: merged
1 year, 1 month
1
0
0
0
[Gerrit] ...core[stable]: Merge branch 'master' into stable
by Xqt (Code Review)
Xqt has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/910745
) Change subject: Merge branch 'master' into stable ...................................................................... Merge branch 'master' into stable Change-Id: I543751c7a0b55af27b242c40a48f7edf9ab478d1 --- M .appveyor.yml M scripts/CHANGELOG.rst M pywikibot/__metadata__.py 4 files changed, 45 insertions(+), 11 deletions(-) Approvals: Xqt: Verified; Looks good to me, approved diff --git a/.appveyor.yml b/.appveyor.yml index 1bf60ff..ee8d358 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -1,7 +1,7 @@ image: Visual Studio 2022 clone_depth: 50 skip_tags: true -version: 8.2.{build} +version: 8.1.{build} environment: PYWIKIBOT_DIR: "%appdata%\\Pywikibot" diff --git a/pywikibot/__metadata__.py b/pywikibot/__metadata__.py index a816904..9834661 100644 --- a/pywikibot/__metadata__.py +++ b/pywikibot/__metadata__.py @@ -11,7 +11,7 @@ __name__ = 'pywikibot' -__version__ = '8.2.0.dev0' +__version__ = '8.1.1' __description__ = 'Python MediaWiki Bot Framework' __maintainer__ = 'The Pywikibot team' __maintainer_email__ = 'pywikibot(a)lists.wikimedia.org' diff --git a/scripts/CHANGELOG.rst b/scripts/CHANGELOG.rst index 6f15b00..4478ca1 100644 --- a/scripts/CHANGELOG.rst +++ b/scripts/CHANGELOG.rst @@ -1,15 +1,7 @@ Scripts Changelog ================= -8.0.2 ------ - -clean_sandbox -~~~~~~~~~~~~~ - -* L10N es-wikis - -8.0.1 +8.1.0 ----- archivebot -- To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/910745
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core Gerrit-Branch: stable Gerrit-Change-Id: I543751c7a0b55af27b242c40a48f7edf9ab478d1 Gerrit-Change-Number: 910745 Gerrit-PatchSet: 1 Gerrit-Owner: Xqt <info(a)gno.de> Gerrit-Reviewer: Xqt <info(a)gno.de> Gerrit-Reviewer: jenkins-bot Gerrit-MessageType: merged
1 year, 1 month
1
0
0
0
[Gerrit] ...core[master]: [doc] Update ROADMAP.rst
by jenkins-bot (Code Review)
jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/910623
) Change subject: [doc] Update ROADMAP.rst ...................................................................... [doc] Update ROADMAP.rst Change-Id: Iaae7d734e6732acb3d9fbcb3cf0480bfaf68f241 --- M ROADMAP.rst 1 file changed, 12 insertions(+), 1 deletion(-) Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified diff --git a/ROADMAP.rst b/ROADMAP.rst index 1adb1ab..aeeec5e 100644 --- a/ROADMAP.rst +++ b/ROADMAP.rst @@ -1,7 +1,9 @@ Current release --------------- -* *(no changes yet)* +* Add support for fatwikipedia (:phab:`T335021`) +* Add support for kcgwiktionary (:phab:`T334742`) +* Update for wowwiki family Deprecations -- To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/910623
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: Iaae7d734e6732acb3d9fbcb3cf0480bfaf68f241 Gerrit-Change-Number: 910623 Gerrit-PatchSet: 1 Gerrit-Owner: Xqt <info(a)gno.de> Gerrit-Reviewer: Xqt <info(a)gno.de> Gerrit-Reviewer: jenkins-bot Gerrit-MessageType: merged
1 year, 1 month
1
0
0
0
[Gerrit] ...core[master]: [L10N] update languages_by_size
by Xqt (Code Review)
Xqt has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/910622
) Change subject: [L10N] update languages_by_size ...................................................................... [L10N] update languages_by_size Change-Id: Ib2d0686d899e14bb61ef9be5ec817a071de1b15d --- M pywikibot/families/wikiquote_family.py M pywikibot/families/wiktionary_family.py M pywikibot/families/wikipedia_family.py 3 files changed, 17 insertions(+), 8 deletions(-) Approvals: Xqt: Verified; Looks good to me, approved diff --git a/pywikibot/families/wikipedia_family.py b/pywikibot/families/wikipedia_family.py index 5e74330..217ff21 100644 --- a/pywikibot/families/wikipedia_family.py +++ b/pywikibot/families/wikipedia_family.py @@ -39,12 +39,12 @@ 'vo', 'yo', 'ne', 'ia', 'gu', 'kn', 'als', 'avk', 'bar', 'scn', 'bpy', 'ha', 'crh', 'qu', 'nv', 'mn', 'xmf', 'si', 'ban', 'ps', 'frr', 'bat-smg', 'os', 'or', 'sah', 'cdo', 'gd', 'bug', 'yi', 'sd', 'ilo', - 'am', 'nap', 'mzn', 'li', 'ig', 'gor', 'hsb', 'fo', 'map-bms', 'mai', + 'am', 'nap', 'mzn', 'li', 'ig', 'gor', 'fo', 'hsb', 'map-bms', 'mai', 'bcl', 'eml', 'shn', 'ace', 'zh-classical', 'sa', 'wa', 'as', 'ie', - 'lij', 'zu', 'mhr', 'hyw', 'hif', 'mrj', 'sn', 'tum', 'bjn', 'mni', + 'lij', 'zu', 'mhr', 'hyw', 'hif', 'sn', 'mrj', 'tum', 'bjn', 'mni', 'km', 'hak', 'roa-tara', 'so', 'pam', 'rue', 'nso', 'bh', 'sat', 'se', 'myv', 'mi', 'vls', 'nds-nl', 'nah', 'sc', 'kw', 'glk', 'vep', 'kab', - 'tk', 'ary', 'gan', 'co', 'dag', 'fiu-vro', 'bo', 'ab', 'rw', 'gv', + 'tk', 'ary', 'gan', 'dag', 'co', 'fiu-vro', 'bo', 'ab', 'rw', 'gv', 'skr', 'ug', 'zea', 'frp', 'udm', 'pcd', 'kv', 'csb', 'mt', 'gn', 'smn', 'ay', 'nrm', 'lez', 'lfn', 'olo', 'stq', 'mwl', 'lo', 'ang', 'fur', 'rm', 'lad', 'gom', 'koi', 'ext', 'tyv', 'dsb', 'av', 'ln', @@ -57,7 +57,7 @@ 'ltg', 'tn', 'ny', 'mad', 'st', 'pih', 'got', 'ee', 'rmy', 'ami', 'bm', 'ff', 've', 'ts', 'chy', 'ss', 'kcg', 'rn', 'pcm', 'ch', 'ik', 'pnt', 'ady', 'guc', 'iu', 'ak', 'pwn', 'sg', 'din', 'ti', 'kl', 'dz', 'gur', - 'cr', 'fat', + 'fat', 'cr', ] # Sites we want to edit but not count as real languages diff --git a/pywikibot/families/wikiquote_family.py b/pywikibot/families/wikiquote_family.py index 4955b79..3b003b2 100644 --- a/pywikibot/families/wikiquote_family.py +++ b/pywikibot/families/wikiquote_family.py @@ -28,7 +28,7 @@ languages_by_size = [ 'it', 'en', 'pl', 'ru', 'cs', 'et', 'pt', 'fa', 'uk', 'he', 'de', 'fr', - 'es', 'tr', 'eo', 'sk', 'bs', 'az', 'ca', 'fi', 'sr', 'sl', 'zh', 'lt', + 'es', 'tr', 'eo', 'sk', 'bs', 'az', 'ca', 'fi', 'sr', 'zh', 'sl', 'lt', 'ar', 'su', 'bg', 'hy', 'hr', 'id', 'el', 'nn', 'sv', 'li', 'hu', 'ko', 'nl', 'sah', 'ja', 'la', 'ta', 'hi', 'gl', 'gu', 'ur', 'ig', 'be', 'guw', 'te', 'vi', 'tl', 'cy', 'no', 'bn', 'sq', 'ml', 'as', 'kn', diff --git a/pywikibot/families/wiktionary_family.py b/pywikibot/families/wiktionary_family.py index ccf2d34..bb41477 100644 --- a/pywikibot/families/wiktionary_family.py +++ b/pywikibot/families/wiktionary_family.py @@ -45,9 +45,9 @@ 'hsb', 'ks', 'shy', 'su', 'bcl', 'gd', 'ga', 'an', 'gom', 'mr', 'wo', 'mni', 'bjn', 'ia', 'ang', 'mt', 'fo', 'sd', 'tt', 'gn', 'so', 'ie', 'ha', 'mi', 'csb', 'ug', 'si', 'guw', 'st', 'hif', 'roa-rup', 'jbo', - 'kl', 'zu', 'ay', 'yi', 'ln', 'gu', 'na', 'gv', 'kw', 'tpi', 'am', - 'ne', 'rw', 'ts', 'ig', 'qu', 'ss', 'iu', 'chr', 'dv', 'ti', 'tn', - 'kcg', + 'kl', 'zu', 'ay', 'yi', 'ln', 'gu', 'na', 'gv', 'kw', 'tpi', 'kcg', + 'am', 'ne', 'rw', 'ts', 'ig', 'qu', 'ss', 'iu', 'chr', 'dv', 'ti', + 'tn', ] category_redirect_templates = { -- To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/910622
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: Ib2d0686d899e14bb61ef9be5ec817a071de1b15d Gerrit-Change-Number: 910622 Gerrit-PatchSet: 1 Gerrit-Owner: Xqt <info(a)gno.de> Gerrit-Reviewer: Xqt <info(a)gno.de> Gerrit-Reviewer: jenkins-bot Gerrit-MessageType: merged
1 year, 1 month
1
0
0
0
[Gerrit] ...core[master]: [coverage] exclude input choices in guf from coverage
by jenkins-bot (Code Review)
jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/910621
) Change subject: [coverage] exclude input choices in guf from coverage ...................................................................... [coverage] exclude input choices in guf from coverage Change-Id: I2d9642fb7649f5f7c56bb3c133c2334b5a0682cf --- M pywikibot/scripts/generate_user_files.py 1 file changed, 11 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 93e32eb..fe5d618 100755 --- a/pywikibot/scripts/generate_user_files.py +++ b/pywikibot/scripts/generate_user_files.py @@ -313,7 +313,7 @@ select = pywikibot.input_choice( f'Do you want to select {variant} setting sections?', answers, default=default, force=force, automatic_quit=False) - if select == 'h': + if select == 'h': # pragma: no cover answers.pop(-1) pywikibot.info( f'The following {variant} setting sections are provided:') @@ -326,7 +326,7 @@ choice = {'a': 'all', 'n': 'none', 'y': 'h'}[select] # mapping for item in filter(skip, sections): answers = [('Yes', 'y'), ('No', 'n'), ('Help', 'h')] - while choice == 'h': + while choice == 'h': # pragma: no cover choice = pywikibot.input_choice( f'Do you want to add {item.head} section?', answers, default='n', force=force, automatic_quit=False) -- To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/910621
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: I2d9642fb7649f5f7c56bb3c133c2334b5a0682cf Gerrit-Change-Number: 910621 Gerrit-PatchSet: 1 Gerrit-Owner: Xqt <info(a)gno.de> Gerrit-Reviewer: Xqt <info(a)gno.de> Gerrit-Reviewer: jenkins-bot Gerrit-MessageType: merged
1 year, 1 month
1
0
0
0
[Gerrit] ...core[master]: Add support for fatwikipedia
by Meno25 (Code Review)
Meno25 has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/910498
) Change subject: Add support for fatwikipedia ...................................................................... Add support for fatwikipedia Bug: T335021 Change-Id: I02e6cbee3cc7dc208d7b967985e6dd4bdaf50a22 --- M pywikibot/families/wikipedia_family.py 1 file changed, 11 insertions(+), 1 deletion(-) Approvals: Meno25: Verified; Looks good to me, approved diff --git a/pywikibot/families/wikipedia_family.py b/pywikibot/families/wikipedia_family.py index b052b8c..5e74330 100644 --- a/pywikibot/families/wikipedia_family.py +++ b/pywikibot/families/wikipedia_family.py @@ -57,7 +57,7 @@ 'ltg', 'tn', 'ny', 'mad', 'st', 'pih', 'got', 'ee', 'rmy', 'ami', 'bm', 'ff', 've', 'ts', 'chy', 'ss', 'kcg', 'rn', 'pcm', 'ch', 'ik', 'pnt', 'ady', 'guc', 'iu', 'ak', 'pwn', 'sg', 'din', 'ti', 'kl', 'dz', 'gur', - 'cr', + 'cr', 'fat', ] # Sites we want to edit but not count as real languages -- To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/910498
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: I02e6cbee3cc7dc208d7b967985e6dd4bdaf50a22 Gerrit-Change-Number: 910498 Gerrit-PatchSet: 2 Gerrit-Owner: Meno25 <meno25mail(a)gmail.com> Gerrit-Reviewer: Meno25 <meno25mail(a)gmail.com> Gerrit-Reviewer: jenkins-bot Gerrit-CC: Xqt <info(a)gno.de> Gerrit-CC: Zabe <zabe(a)avorwerk.net> Gerrit-MessageType: merged
1 year, 1 month
1
0
0
0
[Gerrit] ...core[master]: Add support for kcgwiktionary
by Meno25 (Code Review)
Meno25 has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/910497
) Change subject: Add support for kcgwiktionary ...................................................................... Add support for kcgwiktionary Bug: T334742 Change-Id: I8245310dc969704be85b434a84ae7bb744297878 --- M pywikibot/families/wikisource_family.py M pywikibot/families/wikiquote_family.py M pywikibot/families/wiktionary_family.py M pywikibot/families/wikipedia_family.py 4 files changed, 17 insertions(+), 6 deletions(-) Approvals: Meno25: Verified; Looks good to me, approved diff --git a/pywikibot/families/wikipedia_family.py b/pywikibot/families/wikipedia_family.py index 260cc66..b052b8c 100644 --- a/pywikibot/families/wikipedia_family.py +++ b/pywikibot/families/wikipedia_family.py @@ -30,7 +30,7 @@ 'ja', 'zh', 'vi', 'war', 'uk', 'ar', 'pt', 'fa', 'ca', 'sr', 'id', 'ko', 'no', 'ce', 'fi', 'hu', 'cs', 'tr', 'tt', 'sh', 'ro', 'zh-min-nan', 'eu', 'ms', 'eo', 'he', 'hy', 'da', 'bg', 'cy', 'sk', - 'azb', 'et', 'kk', 'be', 'simple', 'uz', 'min', 'el', 'hr', 'lt', 'gl', + 'azb', 'uz', 'et', 'kk', 'be', 'simple', 'min', 'el', 'hr', 'lt', 'gl', 'az', 'ur', 'sl', 'ka', 'nn', 'hi', 'th', 'ta', 'la', 'bn', 'mk', 'ast', 'zh-yue', 'lld', 'lv', 'tg', 'af', 'my', 'mg', 'bs', 'mr', 'sq', 'oc', 'nds', 'ml', 'be-tarask', 'te', 'ky', 'br', 'sw', 'jv', 'new', @@ -41,7 +41,7 @@ 'bat-smg', 'os', 'or', 'sah', 'cdo', 'gd', 'bug', 'yi', 'sd', 'ilo', 'am', 'nap', 'mzn', 'li', 'ig', 'gor', 'hsb', 'fo', 'map-bms', 'mai', 'bcl', 'eml', 'shn', 'ace', 'zh-classical', 'sa', 'wa', 'as', 'ie', - 'lij', 'zu', 'mhr', 'hyw', 'hif', 'mrj', 'sn', 'bjn', 'tum', 'mni', + 'lij', 'zu', 'mhr', 'hyw', 'hif', 'mrj', 'sn', 'tum', 'bjn', 'mni', 'km', 'hak', 'roa-tara', 'so', 'pam', 'rue', 'nso', 'bh', 'sat', 'se', 'myv', 'mi', 'vls', 'nds-nl', 'nah', 'sc', 'kw', 'glk', 'vep', 'kab', 'tk', 'ary', 'gan', 'co', 'dag', 'fiu-vro', 'bo', 'ab', 'rw', 'gv', @@ -56,7 +56,7 @@ 'lbe', 'ty', 'guw', 'cu', 'trv', 'srn', 'sm', 'alt', 'gcr', 'chr', 'ltg', 'tn', 'ny', 'mad', 'st', 'pih', 'got', 'ee', 'rmy', 'ami', 'bm', 'ff', 've', 'ts', 'chy', 'ss', 'kcg', 'rn', 'pcm', 'ch', 'ik', 'pnt', - 'guc', 'ady', 'iu', 'ak', 'pwn', 'sg', 'din', 'ti', 'kl', 'dz', 'gur', + 'ady', 'guc', 'iu', 'ak', 'pwn', 'sg', 'din', 'ti', 'kl', 'dz', 'gur', 'cr', ] diff --git a/pywikibot/families/wikiquote_family.py b/pywikibot/families/wikiquote_family.py index 3b003b2..4955b79 100644 --- a/pywikibot/families/wikiquote_family.py +++ b/pywikibot/families/wikiquote_family.py @@ -28,7 +28,7 @@ languages_by_size = [ 'it', 'en', 'pl', 'ru', 'cs', 'et', 'pt', 'fa', 'uk', 'he', 'de', 'fr', - 'es', 'tr', 'eo', 'sk', 'bs', 'az', 'ca', 'fi', 'sr', 'zh', 'sl', 'lt', + 'es', 'tr', 'eo', 'sk', 'bs', 'az', 'ca', 'fi', 'sr', 'sl', 'zh', 'lt', 'ar', 'su', 'bg', 'hy', 'hr', 'id', 'el', 'nn', 'sv', 'li', 'hu', 'ko', 'nl', 'sah', 'ja', 'la', 'ta', 'hi', 'gl', 'gu', 'ur', 'ig', 'be', 'guw', 'te', 'vi', 'tl', 'cy', 'no', 'bn', 'sq', 'ml', 'as', 'kn', diff --git a/pywikibot/families/wikisource_family.py b/pywikibot/families/wikisource_family.py index 0dc3e56..3e48cae 100644 --- a/pywikibot/families/wikisource_family.py +++ b/pywikibot/families/wikisource_family.py @@ -28,7 +28,7 @@ 'pl', 'en', 'ru', 'de', 'fr', 'zh', 'he', 'it', 'uk', 'ar', 'es', 'mul', 'gu', 'cs', 'sr', 'pt', 'fa', 'sv', 'bn', 'hu', 'ko', 'ta', 'ml', 'sa', 'te', 'sl', 'tr', 'vi', 'hy', 'la', 'el', 'ja', 'ro', 'fi', - 'nl', 'nap', 'be', 'az', 'ca', 'hr', 'br', 'kn', 'no', 'id', 'th', + 'nl', 'nap', 'be', 'az', 'ca', 'hr', 'br', 'kn', 'no', 'th', 'id', 'eo', 'hi', 'is', 'vec', 'cy', 'ban', 'pms', 'mr', 'lij', 'da', 'et', 'mk', 'as', 'yi', 'bg', 'jv', 'wa', 'li', 'lt', 'pa', 'or', 'eu', 'gl', 'bs', 'sah', 'sk', 'zh-min-nan', 'fo', diff --git a/pywikibot/families/wiktionary_family.py b/pywikibot/families/wiktionary_family.py index 1700107..ccf2d34 100644 --- a/pywikibot/families/wiktionary_family.py +++ b/pywikibot/families/wiktionary_family.py @@ -44,9 +44,10 @@ 'sa', 'kk', 'km', 'ckb', 'vec', 'be', 'diq', 'tk', 'mk', 'nia', 'sm', 'hsb', 'ks', 'shy', 'su', 'bcl', 'gd', 'ga', 'an', 'gom', 'mr', 'wo', 'mni', 'bjn', 'ia', 'ang', 'mt', 'fo', 'sd', 'tt', 'gn', 'so', 'ie', - 'mi', 'csb', 'ha', 'ug', 'si', 'guw', 'st', 'hif', 'roa-rup', 'jbo', + 'ha', 'mi', 'csb', 'ug', 'si', 'guw', 'st', 'hif', 'roa-rup', 'jbo', 'kl', 'zu', 'ay', 'yi', 'ln', 'gu', 'na', 'gv', 'kw', 'tpi', 'am', 'ne', 'rw', 'ts', 'ig', 'qu', 'ss', 'iu', 'chr', 'dv', 'ti', 'tn', + 'kcg', ] category_redirect_templates = { -- To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/910497
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: I8245310dc969704be85b434a84ae7bb744297878 Gerrit-Change-Number: 910497 Gerrit-PatchSet: 3 Gerrit-Owner: Meno25 <meno25mail(a)gmail.com> Gerrit-Reviewer: Meno25 <meno25mail(a)gmail.com> Gerrit-Reviewer: jenkins-bot Gerrit-CC: Xqt <info(a)gno.de> Gerrit-CC: Zabe <zabe(a)avorwerk.net> Gerrit-MessageType: merged
1 year, 1 month
1
0
0
0
[Gerrit] ...i18n[master]: Localisation updates from https://translatewiki.net.
by jenkins-bot (Code Review)
jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/i18n/+/910448
) Change subject: Localisation updates from
https://translatewiki.net
. ...................................................................... Localisation updates from
https://translatewiki.net
. Change-Id: I0188ae4c8579b5d28c56d7f02743ad22f6c86fe8 --- M pywikibot/fi.json M redirect/pms.json M redirect/it.json M redirect/hu.json M redirect/zh.json M redirect/diq.json M category/ja.json A unusedfiles/scn.json 8 files changed, 34 insertions(+), 14 deletions(-) Approvals: L10n-bot: Looks good to me, approved jenkins-bot: Verified diff --git a/category/ja.json b/category/ja.json index 375bc7c..0cf8f36 100644 --- a/category/ja.json +++ b/category/ja.json @@ -13,7 +13,7 @@ }, "category-adding": "ボットによる: カテゴリ「[[:Category:%(newcat)s|%(newcat)s]]」を追加", "category-also-in": "(「%(alsocat)s」にもカテゴリ分けされています)", - "category-clean": "ボット: 既に %(child)s にあるカテゴリ %(category)s を削除", + "category-clean": "ボットによる: 既に %(child)s にあるためカテゴリ %(category)s を削除", "category-listifying": "ボットによる: 「%(fromcat)s」からリスト化 ({{PLURAL:%(num)d|%(num)d件}})", "category-removing": "ボットによる: 「%(oldcat)s」を除去", "category-renamed": "ボットによる: 「%(oldcat)s」から移動。作成者: %(authors)s", diff --git a/pywikibot/fi.json b/pywikibot/fi.json index 52d0868..46b8e2f 100644 --- a/pywikibot/fi.json +++ b/pywikibot/fi.json @@ -3,9 +3,11 @@ "authors": [ "Crt", "Nedergard", + "Pyscowicz", "VezonThunder" ] }, + "pywikibot-bot-prefix": "Botti:", "pywikibot-cosmetic-changes": "; kosmeettisia muutoksia", "pywikibot-enter-category-name": "Kirjoita luokan nimi", "pywikibot-enter-file-links-processing": "Mille tiedostosivulle vievät linkit tulee käsitellä?", diff --git a/redirect/diq.json b/redirect/diq.json index d1a4d7e..5189554 100644 --- a/redirect/diq.json +++ b/redirect/diq.json @@ -11,6 +11,6 @@ "redirect-fix-broken-moved": "Hetenayışe xırabi hedefe pela %(to)s vurneno", "redirect-fix-double": "Boti Tespitê hetanayışê dıleti heta %(to)s", "redirect-fix-loop": "Boti %(to)s rê hetanayışo dılet deke", - "redirect-remove-broken": "Yew pela ke esteriya ya zi çıniya, aye ser çarne", + "redirect-remove-broken": "Era yew pela ke esteriya ya zi çıniya, aye ser çarne", "redirect-remove-loop": "[[WP:CSD#G8|G8]]: Hedefê [[Wikipedia:Redirect|Weçarnayış]]i etikentê weçarnayışi vırazeno." } diff --git a/redirect/hu.json b/redirect/hu.json index bf9d14e..f6f53bb 100644 --- a/redirect/hu.json +++ b/redirect/hu.json @@ -8,7 +8,7 @@ ] }, "redirect-broken-redirect-template": "{{azonnali|Hibás átirányítás}}", - "redirect-fix-broken-moved": "átnevezett oldalra mutató, hibás átirányítás javítása, új cél: %(to)s", + "redirect-fix-broken-moved": "Átnevezett oldalra mutató, hibás átirányítás javítása, új cél: %(to)s", "redirect-fix-double": "%(to)s lapra mutató dupla átirányítás javítása", "redirect-fix-loop": "ide mutató átirányítási hurkok javítása: %(to)s", "redirect-remove-broken": "törölt vagy nem létező lapra mutató átirányítás törlése", diff --git a/redirect/it.json b/redirect/it.json index aee6f75..b25ea4c 100644 --- a/redirect/it.json +++ b/redirect/it.json @@ -8,9 +8,9 @@ ] }, "redirect-broken-redirect-template": "{{Cancella subito|9}}", - "redirect-fix-broken-moved": "Correggo redirect errati alla pagina spostata %(to)s", + "redirect-fix-broken-moved": "Correggo reindirizzamento interrotto alla pagina spostata %(to)s", "redirect-fix-double": "sistemo i redirect doppi a %(to)s", - "redirect-fix-loop": "sistemo ciclo di reindirizzamento a %(to)s", - "redirect-remove-broken": "reindirizzamento a una pagina inesistente", - "redirect-remove-loop": "la destinazione del [[{{ns:project}}:Redirect|reindirizzamento]] rimanda alla pagina di partenza" + "redirect-fix-loop": "Correggo ciclo di reindirizzamento a %(to)s", + "redirect-remove-broken": "Reindirizzamento a una pagina cancellata o inesistente", + "redirect-remove-loop": "La destinazione del reindirizzamento rimanda alla pagina di partenza" } diff --git a/redirect/pms.json b/redirect/pms.json index 388d51a..e805a37 100644 --- a/redirect/pms.json +++ b/redirect/pms.json @@ -5,8 +5,8 @@ "Dragonòt" ] }, - "redirect-fix-broken-moved": "Coression ëd le ridiression nne bon-e a na pàgina ëd destinassion tramudà %(to)s", - "redirect-fix-double": "a coregg ridiression dobia a %(to)s", + "redirect-fix-broken-moved": "Coression ëd le ridiression lòfie a na pàgina ëd destinassion tramudà %(to)s", + "redirect-fix-double": "Coression ëd na ridiression dobia a %(to)s", "redirect-fix-loop": "Coression dël sicl ëd ridiression a %(to)s", "redirect-remove-broken": "Ridiression a na pàgina scancelà o ch'a esist nen", "redirect-remove-loop": "La destinassion ëd la ridiression a forma un sicl ëd ridiression" diff --git a/redirect/zh.json b/redirect/zh.json index db9c452..010aea7 100644 --- a/redirect/zh.json +++ b/redirect/zh.json @@ -1,6 +1,7 @@ { "@metadata": { "authors": [ + "GuoPC", "Liangent", "Linforest", "Liuxinyu970226", @@ -9,9 +10,9 @@ ] }, "redirect-broken-redirect-template": "{{db-r1}}", - "redirect-fix-broken-moved": "机器人:修正损坏重定向到已移动的目标页面%(to)s", - "redirect-fix-double": "机器人:修正双重重定向至%(to)s", - "redirect-fix-loop": "机器人:修正重定向循环至%(to)s", - "redirect-remove-broken": "机器人:重定向到已删除或不存在的页面", - "redirect-remove-loop": "机器人:重定向目标构成循环" + "redirect-fix-broken-moved": "修正损坏重定向到已移动的目标页面%(to)s", + "redirect-fix-double": "修正双重重定向至%(to)s", + "redirect-fix-loop": "修正重定向循环至%(to)s", + "redirect-remove-broken": "重定向到已删除或不存在的页面", + "redirect-remove-loop": "重定向目标构成循环" } diff --git a/unusedfiles/scn.json b/unusedfiles/scn.json new file mode 100644 index 0000000..10138be --- /dev/null +++ b/unusedfiles/scn.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Ajeje Brazorf" + ] + }, + "unusedfiles-comment": "Bot: file contrasignatu comu òrfanu" +} -- To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/i18n/+/910448
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/i18n Gerrit-Branch: master Gerrit-Change-Id: I0188ae4c8579b5d28c56d7f02743ad22f6c86fe8 Gerrit-Change-Number: 910448 Gerrit-PatchSet: 1 Gerrit-Owner: L10n-bot <l10n-bot(a)translatewiki.net> Gerrit-Reviewer: L10n-bot <l10n-bot(a)translatewiki.net> Gerrit-Reviewer: jenkins-bot Gerrit-MessageType: merged
1 year, 1 month
1
0
0
0
← Newer
1
2
3
4
5
6
7
8
...
13
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
Results per page:
10
25
50
100
200