jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1282271?usp=email )
Change subject: Update and fix documentation
......................................................................
Update and fix documentation
- Update documentation in ROADMAP.rst, CHANGELOG.rst, cosmetic_changes.py
and pagegenerators
- Fix info message in noreferences.py
- remove empty line in parser_function_count.py
Change-Id: I10ee27ab416b7bc0076ab54c9f98f7359198168c
---
M ROADMAP.rst
M pywikibot/cosmetic_changes.py
M pywikibot/pagegenerators/_factory.py
M scripts/CHANGELOG.rst
M scripts/noreferences.py
M scripts/parser_function_count.py
6 files changed, 43 insertions(+), 13 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/ROADMAP.rst b/ROADMAP.rst
index 1e12396..2ead9fb 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -1,7 +1,15 @@
Release 11.3
============
-* (no changes yet)
+* Add Devanagari numerals for ne-wiki to :attr:`NON_ASCII_DIGITS
+ <userinterfaces.transliteration.NON_ASCII_DIGITS>` and fix
:class:`textlib.TimeStripper`
+ regex for :attr:`textlib.TimeStripperPatterns.timezone` (:phab:`T424467`)
+* Ignore ``UnicodeDecodeError`` in
:meth:`cosmetic_changes.CosmeticChangesToolkit.cleanUpLinks`
+ and skip the link in such case (:phab:`T423062`)
+* Update translations (i18n)
+* If *preload* optiom is set in
:meth:`pagegenerators.GeneratorFactory.getCombinedGenerator`,
+ the preloading generators :func:`pagegenerators.PreloadingGenerator` or
+ :func:`pagegenerators.DequePreloadingGenerator` are called with the *quiet*
option.
Deprecations
diff --git a/pywikibot/cosmetic_changes.py b/pywikibot/cosmetic_changes.py
index 2751377..5481cdd 100644
--- a/pywikibot/cosmetic_changes.py
+++ b/pywikibot/cosmetic_changes.py
@@ -7,7 +7,7 @@
The changes are not supposed to change the look of the rendered wiki page.
-If you wish to run this as an stand-alone script, use::
+If you wish to run this as a stand-alone script, use::
scripts/cosmetic_changes.py
@@ -15,10 +15,10 @@
cosmetic_changes = True
-You may enable cosmetic changes for additional languages by adding the
-dictionary cosmetic_changes_enable to your user-config.py. It should contain
-a tuple of languages for each site where you wish to enable in addition to
-your own langlanguage if cosmetic_changes_mylang_only is True (see below).
+You may enable cosmetic changes for additional site codes by adding the
+dictionary ``cosmetic_changes_enable`` to your user-config.py. It should
+contain a tuple of codes for each site where you wish to enable in addition to
+your own site code if ``cosmetic_changes_mylang_only`` is True (see below).
Please set your dictionary by adding such lines to your user config::
cosmetic_changes_enable['wikipedia'] = ('de', 'en', 'fr')
@@ -30,8 +30,8 @@
if you're running a bot on multiple sites and want to do cosmetic changes on
all of them, but be careful if you do.
-You may disable cosmetic changes by adding the all unwanted languages to
-the `dictionary cosmetic_changes_disable` in your user config file
+You may disable cosmetic changes by adding all unwanted languages to
+the dictionary ``cosmetic_changes_disable`` in your user config file
(`user-config.py`). It should contain a tuple of languages for each site
where you wish to disable cosmetic changes. You may use it with
`cosmetic_changes_mylang_only` is False, but you can also disable your
@@ -41,8 +41,8 @@
cosmetic_changes_disable['wikipedia'] = ('de', 'en', 'fr')
-You may disable cosmetic changes for a given script by appending the all
-unwanted scripts to the list cosmetic_changes_deny_script in your
+You may disable cosmetic changes for a given script by appending all
+unwanted scripts to the list ``cosmetic_changes_deny_script`` in your
user-config.py. By default it contains cosmetic_changes.py itself and touch.py.
This overrides all other enabling settings for cosmetic changes. Please modify
the given list by adding such lines to your user-config.py::
@@ -549,6 +549,9 @@
.. version-changed:: 8.4
Convert URL-encoded characters if a link is an interwiki link
or different from main namespace.
+ .. version-changed:: 11.3
+ UnicodeDecodeError is now ignored when encoding a links, and
+ link cleanup is skipped in such case.
:param text: String to perform the clean-up on
:return: Text with tidied wikilinks
diff --git a/pywikibot/pagegenerators/_factory.py
b/pywikibot/pagegenerators/_factory.py
index 539d964..83022d2 100644
--- a/pywikibot/pagegenerators/_factory.py
+++ b/pywikibot/pagegenerators/_factory.py
@@ -214,6 +214,11 @@
if ``limit`` option is set and multiple generators are given,
pages are yieded in a :func:`roundrobin
<tools.itertools.roundrobin_generators>` way.
+ .. version-changed:: 11.3
+ If *preload* optiom is set, the preloading generators
+ :func:`pagegenerators.PreloadingGenerator` or
+ :func:`pagegenerators.DequePreloadingGenerator` are called
+ with the *quiet* option.
:param gen: Another generator to be combined with
:param preload: Preload pages using PreloadingGenerator
diff --git a/scripts/CHANGELOG.rst b/scripts/CHANGELOG.rst
index b3af965..79ad140 100644
--- a/scripts/CHANGELOG.rst
+++ b/scripts/CHANGELOG.rst
@@ -1,6 +1,20 @@
Scripts Changelog
=================
+11.3.0
+------
+
+noreferences
+^^^^^^^^^^^^
+
+* No longer skip references headers without trailing newline (:phab:`T424283`)
+
+parser_function_count
+^^^^^^^^^^^^^^^^^^^^^
+
+* Load all pages with content flag (:phab:`T423836`)
+
+
11.2.0
------
diff --git a/scripts/noreferences.py b/scripts/noreferences.py
index de341a4..89fd45e 100755
--- a/scripts/noreferences.py
+++ b/scripts/noreferences.py
@@ -678,7 +678,7 @@
f'commented out, skipping.')
index = match.end()
else:
- pywikibot.info(f'Adding references tag to existing'
+ pywikibot.info(f'Adding references tag to existing '
f'{section} section...\n')
templates_or_comments = re.compile(
r'^((?:\s*(?:\{\{[^\{\}]*?\}\}|<!--.*?-->))*)',
diff --git a/scripts/parser_function_count.py b/scripts/parser_function_count.py
index 9296ae4..2f7cc75 100755
--- a/scripts/parser_function_count.py
+++ b/scripts/parser_function_count.py
@@ -151,8 +151,8 @@
"""Final processing."""
resultlist = '\n'.join(
f'# [[{result[0]}]] ({result[1]})'
-
- for result in self.results.most_common(self.opt.first))
+ for result in self.results.most_common(self.opt.first)
+ )
pywikibot.info()
pywikibot.info(resultlist)
pywikibot.info(f'{len(self.results)} templates were found.')
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1282271?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I10ee27ab416b7bc0076ab54c9f98f7359198168c
Gerrit-Change-Number: 1282271
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]