jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1101208?usp=email )
Change subject: Fix use of importlib.metadata.entry_points in python 3.9
......................................................................
Fix use of importlib.metadata.entry_points in python 3.9
entry_points() did not take arguments until python 3.10
Bug: T381734
Change-Id: Ib01641ffa83be1e243615903eca95d872633ff2b
---
M pywikibot/scripts/wrapper.py
1 file changed, 12 insertions(+), 1 deletion(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/pywikibot/scripts/wrapper.py b/pywikibot/scripts/wrapper.py
index a9bfc8f..1096e09 100755
--- a/pywikibot/scripts/wrapper.py
+++ b/pywikibot/scripts/wrapper.py
@@ -421,7 +421,18 @@
from pywikibot.i18n import set_messages_package
- for ep in entry_points(name='scriptspath', group='pywikibot'):
+ if sys.version_info < (3, 10):
+ entry_points_items = [
+ ep for ep in entry_points().get('pywikibot', [])
+ if ep.name == 'scriptspath'
+ ]
+ else:
+ entry_points_items = entry_points(
+ name='scriptspath',
+ group='pywikibot',
+ )
+
+ for ep in entry_points_items:
path = ep.load()
found = test_paths([''], path)
if found:
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1101208?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: Ib01641ffa83be1e243615903eca95d872633ff2b
Gerrit-Change-Number: 1101208
Gerrit-PatchSet: 1
Gerrit-Owner: JJMC89 <JJMC89.Wikimedia(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1101200?usp=email )
Change subject: cleanup: remove positional arguments for logging functions
......................................................................
cleanup: remove positional arguments for logging functions
Also enable args as formatting parameters
Bug: T378898
Change-Id: I814a92e8b86ff13d98327b68443c7d779e166f4b
---
M ROADMAP.rst
M pywikibot/logging.py
2 files changed, 55 insertions(+), 55 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/ROADMAP.rst b/ROADMAP.rst
index fb8c82a..b5b5478 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -3,6 +3,7 @@
**Improvements**
+* *args* parameter for :mod:`logging` functions can be used as formatting arguments
* :attr:`.login.OauthLoginManager.access_token` was added.
* Representation string for :class:`login.LoginManager` was added.
* i18n updates.
@@ -13,6 +14,8 @@
**Code cleanups**
+* Positional arguments *decoder*, *layer* and *newline* for :mod:`logging` functions are invalid;
+ keyword arguments must be used instead.
* The positional arguments of :meth:`page.BasePage.linkedPages` were removed.
* ``FilePage.usingPages()`` was renamed to :meth:`using_pages()<pywikibot.FilePage.using_pages>`.
* ``APISite.article_path`` was removed. :attr:`APISite.articlepath
@@ -116,8 +119,6 @@
* 9.4.0: :mod:`flow` support is deprecated and will be removed (:phab:`T371180`)
* 7.3.0: ``linktrail`` method of :class:`family.Family` is deprecated; use :meth:`APISite.linktrail()
<pywikibot.site._apisite.APISite.linktrail>` instead
-* 7.2.0: Positional arguments *decoder*, *layer* and *newline* for :mod:`logging` functions were dropped; keyword
- arguments must be used instead.
* 7.2.0: ``tb`` parameter of :func:`exception()<pywikibot.logging.exception>` function was renamed to ``exc_info``
* 7.1.0: Unused ``get_redirect`` parameter of :meth:`Page.getOldVersion()<page.BasePage.getOldVersion>` will be removed
* 7.0.0: baserevid parameter of editSource(), editQualifier(), removeClaims(), removeSources(), remove_qualifiers()
diff --git a/pywikibot/logging.py b/pywikibot/logging.py
index ef028ce..7dc1f21 100644
--- a/pywikibot/logging.py
+++ b/pywikibot/logging.py
@@ -48,7 +48,6 @@
from typing import Any
from pywikibot.backports import Callable
-from pywikibot.tools import deprecated_args, issue_deprecation_warning
STDOUT = 16 #:
@@ -82,8 +81,6 @@
_init_routines[:] = [] # the global variable is used with slice operator
-# Note: The frame must be updated if this decorator is removed
-@deprecated_args(text='msg') # since 7.2
def logoutput(msg: Any,
*args: Any,
level: int = INFO,
@@ -94,20 +91,30 @@
functions. It can be used to implement your own high-level output
function with a different logging level.
- `msg` can contain special sequences to create colored output. These
+ *msg* can contain special sequences to create colored output. These
consist of the color name in angle bracket, e. g. <<lightpurple>>.
<<default>> resets the color.
- Other keyword arguments are passed unchanged to the logger; so far,
- the only argument that is useful is ``exc_info=True``, which causes
- the log message to include an exception traceback.
+ *args* are the arguments which are merged into *msg* using the
+ string formatting operator. It is passed unchanged to the logger.
+
+ .. attention:: Only old ``%``-formatting is supported for *args* by
+ the :pylib:`logging` module.
+
+ Keyword arguments other than those listed below are also passed
+ unchanged to the logger; so far, the only argument that is useful is
+ ``exc_info=True``, which causes the log message to include an
+ exception traceback.
.. versionchanged:: 7.2
Positional arguments for *decoder* and *newline* are deprecated;
keyword arguments should be used.
+ .. versionchanged:: 10.0
+ *args* parameter can now given as formatting arguments directly
+ to the logger.
:param msg: The message to be printed.
- :param args: Not used yet; prevents positional arguments except `msg`.
+ :param args: Passed as string formatter options to the logger.
:param level: The logging level; supported by :func:`logoutput` only.
:keyword bool newline: If newline is True (default), a line feed
will be added after printing the msg.
@@ -122,35 +129,12 @@
if _init_routines:
_init()
- keys: tuple[str, ...]
- # cleanup positional args
- if level == ERROR:
- keys = ('decoder', 'newline', 'exc_info')
- elif level == DEBUG:
- keys = ('layer', 'decoder', 'newline')
- else:
- keys = ('decoder', 'newline')
-
- for i, arg in enumerate(args):
- key = keys[i]
- issue_deprecation_warning(
- f'Positional argument {i + 1} ({arg})',
- f'keyword argument "{key}={arg}"',
- since='7.2.0')
- if key in kwargs:
- warning(f'{key!r} is given as keyword argument {arg!r} already; '
- f'ignoring {kwargs[key]!r}')
- else:
- kwargs[key] = arg
-
# frame 0 is logoutput() in this module,
- # frame 1 is the deprecation wrapper of this function
- # frame 2 is the convenience function (output(), etc.)
- # frame 3 is the deprecation wrapper the convenience function
- # frame 4 is whatever called the convenience function
- newline = kwargs.pop('newline', True)
- frame = sys._getframe(4)
+ # frame 1 is the convenience function (info(), etc.)
+ # frame 2 is whatever called the convenience function
+ frame = sys._getframe(2)
module = os.path.basename(frame.f_code.co_filename)
+ newline = kwargs.pop('newline', True)
context = {'caller_name': frame.f_code.co_name,
'caller_file': module,
'caller_line': frame.f_lineno,
@@ -166,22 +150,30 @@
layer = kwargs.pop('layer', '')
logger = logging.getLogger(('pywiki.' + layer).strip('.'))
- logger.log(level, msg, extra=context, **kwargs)
+ logger.log(level, msg, *args, extra=context, **kwargs)
-# Note: The logoutput frame must be updated if this decorator is removed
-@deprecated_args(text='msg') # since 7.2
def info(msg: Any = '', *args: Any, **kwargs: Any) -> None:
"""Output a message to the user with level :const:`INFO`.
``msg`` will be sent to stderr via :mod:`pywikibot.userinterfaces`.
It may be omitted and a newline is printed in that case.
- The arguments are interpreted as for :func:`logoutput`.
+ The arguments are interpreted as for :func:`logoutput`. *args* can
+ be uses as formatting arguments for all logging functions of this
+ module. But this works for old ``%``-formatting only:
+
+ >>> info('Hello %s', 'World') # doctest: +SKIP
+ Hello World
+ >>> info('Pywikibot %(version)d', {'version': 10}) # doctest: +SKIP
+ Pywikibot 10
.. versionadded:: 7.2
was renamed from :func:`output`. Positional arguments for
*decoder* and *newline* are deprecated; keyword arguments should
be used. Keyword parameter *layer* was added.
+ .. versionchanged:: 10.0
+ *args* parameter can now given as formatting arguments directly
+ to the logger.
.. seealso::
:python:`Logger.info()<library/logging.html#logging.Logger.info>`
@@ -202,8 +194,6 @@
"""
-# Note: The logoutput frame must be updated if this decorator is removed
-@deprecated_args(text='msg') # since 7.2
def stdout(msg: Any = '', *args: Any, **kwargs: Any) -> None:
"""Output script results to the user with level :const:`STDOUT`.
@@ -218,6 +208,9 @@
`text` was renamed to `msg`; `msg` parameter may be omitted;
only keyword arguments are allowed except for `msg`. Keyword
parameter *layer* was added.
+ .. versionchanged:: 10.0
+ *args* parameter can now given as formatting arguments directly
+ to the logger.
.. seealso::
- :python:`Logger.log()<library/logging.html#logging.Logger.log>`
- :wiki:`Pipeline (Unix)`
@@ -225,8 +218,6 @@
logoutput(msg, *args, level=STDOUT, **kwargs)
-# Note: The logoutput frame must be updated if this decorator is removed
-@deprecated_args(text='msg') # since 7.2
def warning(msg: Any, *args: Any, **kwargs: Any) -> None:
"""Output a warning message to the user with level :const:`WARNING`.
@@ -236,14 +227,15 @@
.. versionchanged:: 7.2
`text` was renamed to `msg`; only keyword arguments are allowed
except for `msg`. Keyword parameter *layer* was added.
+ .. versionchanged:: 10.0
+ *args* parameter can now given as formatting arguments directly
+ to the logger.
.. seealso::
:python:`Logger.warning()<library/logging.html#logging.Logger.warning>`
"""
logoutput(msg, *args, level=WARNING, **kwargs)
-# Note: The logoutput frame must be updated if this decorator is removed
-@deprecated_args(text='msg') # since 7.2
def error(msg: Any, *args: Any, **kwargs: Any) -> None:
"""Output an error message to the user with level :const:`ERROR`.
@@ -253,14 +245,15 @@
.. versionchanged:: 7.2
`text` was renamed to `msg`; only keyword arguments are allowed
except for `msg`. Keyword parameter *layer* was added.
+ .. versionchanged:: 10.0
+ *args* parameter can now given as formatting arguments directly
+ to the logger.
.. seealso::
:python:`Logger.error()<library/logging.html#logging.Logger.error>`
"""
logoutput(msg, *args, level=ERROR, **kwargs)
-# Note: The logoutput frame must be updated if this decorator is removed
-@deprecated_args(text='msg') # since 7.2
def log(msg: Any, *args: Any, **kwargs: Any) -> None:
"""Output a record to the log file with level :const:`VERBOSE`.
@@ -269,14 +262,15 @@
.. versionchanged:: 7.2
`text` was renamed to `msg`; only keyword arguments are allowed
except for `msg`. Keyword parameter *layer* was added.
+ .. versionchanged:: 10.0
+ *args* parameter can now given as formatting arguments directly
+ to the logger.
.. seealso::
:python:`Logger.log()<library/logging.html#logging.Logger.log>`
"""
logoutput(msg, *args, level=VERBOSE, **kwargs)
-# Note: The logoutput frame must be updated if this decorator is removed
-@deprecated_args(text='msg') # since 7.2
def critical(msg: Any, *args: Any, **kwargs: Any) -> None:
"""Output a critical record to the user with level :const:`CRITICAL`.
@@ -286,6 +280,9 @@
.. versionchanged:: 7.2
`text` was renamed to `msg`; only keyword arguments are allowed
except for `msg`. Keyword parameter *layer* was added.
+ .. versionchanged:: 10.0
+ *args* parameter can now given as formatting arguments directly
+ to the logger.
.. seealso::
:python:`Logger.critical()
<library/logging.html#logging.Logger.critical>`
@@ -293,8 +290,6 @@
logoutput(msg, *args, level=CRITICAL, **kwargs)
-# Note: The logoutput frame must be updated if this decorator is removed
-@deprecated_args(text='msg') # since 7.2
def debug(msg: Any, *args: Any, **kwargs: Any) -> None:
"""Output a debug record to the log file with level :const:`DEBUG`.
@@ -303,14 +298,15 @@
.. versionchanged:: 7.2
`layer` parameter is optional; `text` was renamed to `msg`;
only keyword arguments are allowed except for `msg`.
+ .. versionchanged:: 10.0
+ *args* parameter can now given as formatting arguments directly
+ to the logger.
.. seealso::
:python:`Logger.debug()<library/logging.html#logging.Logger.debug>`
"""
logoutput(msg, *args, level=DEBUG, **kwargs)
-# Note: The logoutput frame must be updated if this decorator is removed
-@deprecated_args(tb='exc_info') # since 7.2
def exception(msg: Any = None, *args: Any,
exc_info: bool = True, **kwargs: Any) -> None:
"""Output an error traceback to the user with level :const:`ERROR`.
@@ -341,6 +337,9 @@
parameter *layer* was added.
.. versionchanged:: 7.3
`exc_info` is True by default
+ .. versionchanged:: 10.0
+ *args* parameter can now given as formatting arguments directly
+ to the logger.
.. seealso::
:python:`Logger.exception()
<library/logging.html#logging.Logger.exception>`
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1101200?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: I814a92e8b86ff13d98327b68443c7d779e166f4b
Gerrit-Change-Number: 1101200
Gerrit-PatchSet: 5
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1101194?usp=email )
Change subject: cleanup: pywikibot.page cleanups
......................................................................
cleanup: pywikibot.page cleanups
- remove positional arguments of BasePage.linkedPages()
- remove FilePage.usingPages()
- update ROADMAP.rst
Bug: T378898
Change-Id: I8a32da5ba2d83c649905bed7c4c903401c97fb56
---
M ROADMAP.rst
M pywikibot/page/_basepage.py
M pywikibot/page/_filepage.py
3 files changed, 37 insertions(+), 52 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/ROADMAP.rst b/ROADMAP.rst
index 1b9bebb..fb8c82a 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -3,9 +3,9 @@
**Improvements**
-* :attr:`.login.OauthLoginManager.access_token` was added
-* Representation string for :class:`login.LoginManager` was added
-* i18n updates
+* :attr:`.login.OauthLoginManager.access_token` was added.
+* Representation string for :class:`login.LoginManager` was added.
+* i18n updates.
**Bugfixes**
@@ -13,32 +13,34 @@
**Code cleanups**
+* The positional arguments of :meth:`page.BasePage.linkedPages` were removed.
+* ``FilePage.usingPages()`` was renamed to :meth:`using_pages()<pywikibot.FilePage.using_pages>`.
* ``APISite.article_path`` was removed. :attr:`APISite.articlepath
<pywikibot.site._apisite.APISite.articlepath>` can be used instead.
* ``fix_digits`` method of :class:`textlib.TimeStripper` was removed;
- :func:`textlib.to_latin_digits` can be used instead
+ :func:`textlib.to_latin_digits` can be used instead.
* :mod:`textlib`.tzoneFixedOffset class was removed in favour of
- :class:`time.TZoneFixedOffse<pywikibot.time.TZoneFixedOffset>`
-* A boolean *watch* parameter in :meth:`page.BasePage.save` is desupported
+ :class:`time.TZoneFixedOffse<pywikibot.time.TZoneFixedOffset>`.
+* A boolean *watch* parameter in :meth:`page.BasePage.save` is desupported.
* ``XMLDumpOldPageGenerator`` was removed in favour of a ``content`` parameter of
- :func:`pagegenerators.XMLDumpPageGenerator` (:phab:`T306134`)
-* :meth:`pywikibot.User.is_blocked` method was renamed from ``isBlocked`` for consistency
+ :func:`pagegenerators.XMLDumpPageGenerator` (:phab:`T306134`).
+* :meth:`pywikibot.User.is_blocked` method was renamed from ``isBlocked`` for consistency.
* Values of :meth:`APISite.allpages()<pywikibot.site._generators.GeneratorsMixin.allpages>`
- parameter filterredir must be True, False or None
-* :mod:`tools.threading` classes no longer can be imported from :mod:`tools`
-* :mod:`tools.itertools` datatypes no longer can be imported from :mod:`tools`
-* :mod:`tools.collections` datatypes no longer can be imported from :mod:`tools`
+ parameter filterredir must be True, False or None.
+* :mod:`tools.threading` classes no longer can be imported from :mod:`tools`.
+* :mod:`tools.itertools` datatypes no longer can be imported from :mod:`tools`.
+* :mod:`tools.collections` datatypes no longer can be imported from :mod:`tools`.
* ``svn_rev_info`` and ``getversion_svn`` of :mod:`version` module were be removed.
- SVN repository is no longer supported. (:phab:`T362484`)
-* Old color escape sequences like ``\03{color}`` were dropped in favour of new color format like ``<<color>>``
-* ``tools.formatter.color_format()`` was removed; the new color literals can be used instead
+ SVN repository is no longer supported. (:phab:`T362484`).
+* Old color escape sequences like ``\03{color}`` were dropped in favour of new color format like ``<<color>>``.
+* ``tools.formatter.color_format()`` was removed; the new color literals can be used instead.
* RedirectPageBot and NoRedirectPageBot bot classes were removed in favour of
- :attr:`use_redirects<bot.BaseBot.use_redirects>` attribute
+ :attr:`use_redirects<bot.BaseBot.use_redirects>` attribute.
-** Other breaking changes**
+**Other breaking changes**
* Python 3.7 support was dropped (:phab:`T378893`), including *importlib_metadata* of
- :mod:`backports`
+ :mod:`backports`.
* See also Current Deprecations below.
@@ -112,7 +114,6 @@
-------------------------------
* 9.4.0: :mod:`flow` support is deprecated and will be removed (:phab:`T371180`)
-* 7.4.0: ``FilePage.usingPages()`` was renamed to :meth:`using_pages()<pywikibot.FilePage.using_pages>`
* 7.3.0: ``linktrail`` method of :class:`family.Family` is deprecated; use :meth:`APISite.linktrail()
<pywikibot.site._apisite.APISite.linktrail>` instead
* 7.2.0: Positional arguments *decoder*, *layer* and *newline* for :mod:`logging` functions were dropped; keyword
diff --git a/pywikibot/page/_basepage.py b/pywikibot/page/_basepage.py
index 9b907b6..8c9968c 100644
--- a/pywikibot/page/_basepage.py
+++ b/pywikibot/page/_basepage.py
@@ -42,7 +42,6 @@
deprecated,
deprecated_args,
first_upper,
- issue_deprecation_warning,
remove_last_args,
)
@@ -1513,7 +1512,8 @@
apply_cosmetic_changes=False, nocreate=True, **kwargs)
def linkedPages(
- self, *args, **kwargs
+ self,
+ **kwargs
) -> Generator[pywikibot.page.BasePage, None, None]:
"""Iterate Pages that this Page links to.
@@ -1525,36 +1525,29 @@
:py:mod:`APISite.pagelinks<pywikibot.site.APISite.pagelinks>`
.. versionadded:: 7.0
- the `follow_redirects` keyword argument
+ the `follow_redirects` keyword argument.
.. deprecated:: 7.0
- the positional arguments
+ the positional arguments.
+ .. versionremoved:: 10.0
+ the positional arguments.
- .. seealso:: :api:`Links`
+ .. seealso::
+ - :meth:`Site.pagelinks
+ <pywikibot.site._generators.GeneratorsMixin.pagelinks>`
+ - :api:`Links`
:keyword namespaces: Only iterate pages in these namespaces
(default: all)
:type namespaces: iterable of str or Namespace key,
or a single instance of those types. May be a '|' separated
list of namespace identifiers.
- :keyword follow_redirects: if True, yields the target of any redirects,
- rather than the redirect page
- :keyword total: iterate no more than this number of pages in total
- :keyword content: if True, load the current content of each page
+ :keyword bool follow_redirects: if True, yields the target of
+ any redirects, rather than the redirect page
+ :keyword int total: iterate no more than this number of pages in
+ total
+ :keyword bool content: if True, load the current content of each
+ page
"""
- # Deprecate positional arguments and synchronize with Site.pagelinks
- keys = ('namespaces', 'total', 'content')
- for i, arg in enumerate(args): # pragma: no cover
- key = keys[i]
- issue_deprecation_warning(
- f'Positional argument {i + 1} ({arg})',
- f'keyword argument "{key}={arg}"',
- since='7.0.0')
- if key in kwargs:
- pywikibot.warning(f'{key!r} is given as keyword argument '
- f'{arg!r} already; ignoring {kwargs[key]!r}')
- else:
- kwargs[key] = arg
-
return self.site.pagelinks(self, **kwargs)
def interwiki(
diff --git a/pywikibot/page/_filepage.py b/pywikibot/page/_filepage.py
index bb4b054..6de3ecd 100644
--- a/pywikibot/page/_filepage.py
+++ b/pywikibot/page/_filepage.py
@@ -22,7 +22,7 @@
from pywikibot.comms import http
from pywikibot.exceptions import NoPageError
from pywikibot.page._page import Page
-from pywikibot.tools import compute_file_hash, deprecated
+from pywikibot.tools import compute_file_hash
__all__ = (
@@ -267,15 +267,6 @@
"""
return self.site.imageusage(self, **kwargs)
- @deprecated('using_pages', since='7.4.0')
- def usingPages(self, **kwargs): # noqa: N802
- """Yield Pages on which the file is displayed.
-
- .. deprecated:: 7.4
- Use :meth:`using_pages` instead.
- """
- return self.using_pages(**kwargs)
-
@property
def file_is_used(self) -> bool:
"""Check whether the file is used at this site.
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1101194?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: I8a32da5ba2d83c649905bed7c4c903401c97fb56
Gerrit-Change-Number: 1101194
Gerrit-PatchSet: 3
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1101192?usp=email )
Change subject: doc: update ROADMAP.rst and CHANGELOG.rst
......................................................................
doc: update ROADMAP.rst and CHANGELOG.rst
Change-Id: I74f173381808aed4df0c2d420d59a13a99cb9988
---
M ROADMAP.rst
M scripts/CHANGELOG.rst
2 files changed, 14 insertions(+), 3 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/ROADMAP.rst b/ROADMAP.rst
index 7d36848..ff740a1 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -3,17 +3,20 @@
**Improvements**
-* (no changes yet)
+* :attr:`.login.OauthLoginManager.access_token` was added
+* Representation string for :class:`login.LoginManager` was added
+* i18n updates
**Bugfixes**
* (no changes yet)
-**Breaking changes and code cleanups**
+**Code cleanups**
* ``fix_digits`` method of :class:`textlib.TimeStripper` was removed;
:func:`textlib.to_latin_digits` can be used instead
-* :mod:`textlib`.tzoneFixedOffset class was removed in favour of :class:`time.TZoneFixedOffset`
+* :mod:`textlib`.tzoneFixedOffset class was removed in favour of
+ :class:`time.TZoneFixedOffse<pywikibot.time.TZoneFixedOffset>`
* A boolean *watch* parameter in :meth:`page.BasePage.save` is desupported
* ``XMLDumpOldPageGenerator`` was removed in favour of a ``content`` parameter of
:func:`pagegenerators.XMLDumpPageGenerator` (:phab:`T306134`)
@@ -29,13 +32,19 @@
* ``tools.formatter.color_format()`` was removed; the new color literals can be used instead
* RedirectPageBot and NoRedirectPageBot bot classes were removed in favour of
:attr:`use_redirects<bot.BaseBot.use_redirects>` attribute
+
+** Other breaking changes**
+
* Python 3.7 support was dropped (:phab:`T378893`), including *importlib_metadata* of
:mod:`backports`
+* See also Current Deprecations below.
Current Deprecations
====================
+* 10.0.0: 'millenia' argument for *precision* parameter of :class:`pywikibot.WbTime` is deprecated;
+ 'millennium' must be used instead.
* 10.0.0: *includeredirects* parameter of :func:`pagegenerators.AllpagesPageGenerator` and
:func:`pagegenerators.PrefixingPageGenerator` is deprecated and should be replaced by *filterredir*
* 9.6.0: :meth:`BaseSite.languages()<pywikibot.site._basesite.BaseSite.languages>` will be removed in favour of
diff --git a/scripts/CHANGELOG.rst b/scripts/CHANGELOG.rst
index 4254ddb..446c52d 100644
--- a/scripts/CHANGELOG.rst
+++ b/scripts/CHANGELOG.rst
@@ -4,6 +4,8 @@
10.0.0
------
+* i18n updates
+
dataextend
^^^^^^^^^^
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1101192?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: I74f173381808aed4df0c2d420d59a13a99cb9988
Gerrit-Change-Number: 1101192
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot