jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1251525?usp=email )
Change subject: doc: Update documentation for Pywikibot 11.1
......................................................................
doc: Update documentation for Pywikibot 11.1
Bug: T418994
Change-Id: I17b358b4a6b705112a5c4e44d6e1288e16487738
---
M ROADMAP.rst
M pywikibot/page/_filepage.py
M pywikibot/throttle.py
M scripts/CHANGELOG.rst
4 files changed, 15 insertions(+), 1 deletion(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/ROADMAP.rst b/ROADMAP.rst
index 2bf3d96..f43514b 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -1,6 +1,12 @@
Release 11.1
============
+* Add support for kaiwiki (:phab:`T414239`)
+* Add support for urwikisource (:phab:`T415976`)
+* Raise :exc:`NotImplementedError` instead of :exc:`AttributeError` if a
+ :class:`Site<pywikibot.site._basesite.BaseSite>` method cannot be delegated
to the corresponding
+ :class:`Family<family.Family>` (:phab:`T417961`)
+* Use read throttle with :meth:`pywikibot.FilePage.download` per Wikitech
robot policy for download (:phab:`T418672`)
* Add *namespaces* parameter to
:func:`pagegenerators.SubCategoriesPageGenerator` (:phab:`T417961`)
* Fix nightly package version detection in :meth:`version.getversion_nightly`
* Remove warning in :attr:`data.api.QueryGenerator.set_namespace`
(:phab:`T196619`, :phab:`T198452`)
diff --git a/pywikibot/page/_filepage.py b/pywikibot/page/_filepage.py
index c9738a5..bdbcc6f 100644
--- a/pywikibot/page/_filepage.py
+++ b/pywikibot/page/_filepage.py
@@ -365,6 +365,9 @@
.. version-changed:: 8.2
*filename* argument may be also a path-like object or an
iterable of path segments.
+ .. version-changed:: 11.1
+ Use a read throttle for download per Wikitech robot policy.
+ Set it to 25 times of :attr:`throttle.Throttle.delay`.
.. note:: filename suffix is adjusted if target url's suffix is
different which may be the case if a thumbnail is loaded.
.. warning:: If a file already exists, it will be overridden
diff --git a/pywikibot/throttle.py b/pywikibot/throttle.py
index 64adc90..4c16c61 100644
--- a/pywikibot/throttle.py
+++ b/pywikibot/throttle.py
@@ -90,7 +90,10 @@
self.last_write = 0.0
self.retry_after = 0 # set by http.request
- self.delay = 0
+
+ #: the minimum access delay, usually set by config.minthrottle
+ self.delay: int = 0
+
self.checktime = 0.0
self.modules: Counter[str] = Counter()
diff --git a/scripts/CHANGELOG.rst b/scripts/CHANGELOG.rst
index 2d2df82..13a02ba 100644
--- a/scripts/CHANGELOG.rst
+++ b/scripts/CHANGELOG.rst
@@ -4,6 +4,8 @@
11.1.0
------
+* i18n updates
+
weblinkchecker
^^^^^^^^^^^^^^
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1251525?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: I17b358b4a6b705112a5c4e44d6e1288e16487738
Gerrit-Change-Number: 1251525
Gerrit-PatchSet: 1
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]