jenkins-bot submitted this change.

View Change


Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[doc] Fix logging documentation

Change-Id: Ia8e5ae17a3fe1f799ee686c4774b46250f37e39f
---
M pywikibot/logging.py
1 file changed, 17 insertions(+), 8 deletions(-)

diff --git a/pywikibot/logging.py b/pywikibot/logging.py
index 9dafa11..f87bf92 100644
--- a/pywikibot/logging.py
+++ b/pywikibot/logging.py
@@ -20,7 +20,7 @@
argument, which is a string indicating the debugging layer.
"""
#
-# (C) Pywikibot team, 2010-2022
+# (C) Pywikibot team, 2010-2023
#
# Distributed under the terms of the MIT license.
#
@@ -175,7 +175,7 @@
are interpreted as for :func:`logoutput`.

.. versionchanged:: 7.2
- was renamed to :func:`info`; `text`was renamed to `msg`; `msg`
+ was renamed to :func:`info`; `text` was renamed to `msg`; `msg`
paramerer may be omitted; only keyword arguments are allowed except
for `msg`.
.. seealso::
@@ -196,7 +196,7 @@
The arguments are interpreted as for :func:`logoutput`.

.. versionchanged:: 7.2
- `text`was renamed to `msg`; `msg` parameter may be omitted;
+ `text` was renamed to `msg`; `msg` parameter may be omitted;
only keyword arguments are allowed except for `msg`.
.. seealso::
- :python:`Logger.log()<library/logging.html#logging.Logger.log>`
@@ -214,7 +214,7 @@
The arguments are interpreted as for :func:`logoutput`.

.. versionchanged:: 7.2
- `text`was renamed to `msg`; only keyword arguments are allowed
+ `text` was renamed to `msg`; only keyword arguments are allowed
except for `msg`.
.. seealso::
:python:`Logger.warning()<library/logging.html#logging.Logger.warning>`
@@ -231,7 +231,7 @@
The arguments are interpreted as for :func:`logoutput`.

.. versionchanged:: 7.2
- `text`was renamed to `msg`; only keyword arguments are allowed
+ `text` was renamed to `msg`; only keyword arguments are allowed
except for `msg`.
.. seealso::
:python:`Logger.error()<library/logging.html#logging.Logger.error>`
@@ -247,7 +247,7 @@
The arguments are interpreted as for :func:`logoutput`.

.. versionchanged:: 7.2
- `text`was renamed to `msg`; only keyword arguments are allowed
+ `text` was renamed to `msg`; only keyword arguments are allowed
except for `msg`.
.. seealso::
:python:`Logger.log()<library/logging.html#logging.Logger.log>`
@@ -264,7 +264,7 @@
The arguments are interpreted as for :func:`logoutput`.

.. versionchanged:: 7.2
- `text`was renamed to `msg`; only keyword arguments are allowed
+ `text` was renamed to `msg`; only keyword arguments are allowed
except for `msg`.
.. seealso::
:python:`Logger.critical()
@@ -281,7 +281,7 @@
The arguments are interpreted as for :func:`logoutput`.

.. versionchanged:: 7.2
- `layer` parameter is optional; `text`was renamed to `msg`;
+ `layer` parameter is optional; `text` was renamed to `msg`;
only keyword arguments are allowed except for `msg`.
.. seealso::
:python:`Logger.debug()<library/logging.html#logging.Logger.debug>`

To view, visit change 947356. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ia8e5ae17a3fe1f799ee686c4774b46250f37e39f
Gerrit-Change-Number: 947356
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged