jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1235553?usp=email )
Change subject: config: Set the default pickle protocol to 5 ...................................................................... config: Set the default pickle protocol to 5 config.pickle_protocol was introduced with Pywikibot 2 to ensure that pickle files are readable with Python 2 and Python 3. Protocol 5 was added with Python 3.8 and is the default protocol for Python 3.14+. Therefore increase the protocol version to 5 for all supported Python releases. Bug: T416087 Change-Id: Idc3d26105f4114f33decfaf9cef721efb6fa6bc9 --- M ROADMAP.rst M pywikibot/config.py 2 files changed, 7 insertions(+), 5 deletions(-) Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified diff --git a/ROADMAP.rst b/ROADMAP.rst index fcb9cb1..11c562e 100644 --- a/ROADMAP.rst +++ b/ROADMAP.rst @@ -3,6 +3,8 @@ **Improvements** +* :ref:`config.pickle_protocol<Further Settings>` was updated from version `2` to `5`. Older pickle + files are still readable. * Make :class:`textlib.TimeStripper` more resilient for itwiki. (:phab:`T415880`) * Add WikiWho API support. (:phab:`T414071`) * Never use None as key in WeakKeyDictionary within :class:`proofreadpage.TagAttrDesc`. diff --git a/pywikibot/config.py b/pywikibot/config.py index e5c60e5..8fd441c 100644 --- a/pywikibot/config.py +++ b/pywikibot/config.py @@ -857,13 +857,13 @@ # Pickle protocol version to use for storing dumps. # This config variable is not used for loading dumps. -# Version 0 is a more or less human-readable protocol -# Version 2 is common to both Python 2 and 3, and should -# be used when dumps are accessed by both versions. +# Version 0 is a more or less human-readable protocol. +# Version 1 is an old binary format. +# Version 2 is common to both Python 2 and 3. Default for Pywikibot 1–10. # Version 3 is only available for Python 3 # Version 4 is only available for Python 3.4+ -# Version 5 was added with Python 3.8 -pickle_protocol = 2 +# Version 5 was added with Python 3.8. It is the default since Pywikibot 11. +pickle_protocol = 5 # ============================ # End of configuration section -- To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1235553?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: Idc3d26105f4114f33decfaf9cef721efb6fa6bc9 Gerrit-Change-Number: 1235553 Gerrit-PatchSet: 3 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]
