jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/817766 )
Change subject: [IMPR] fix typos in logging.py ......................................................................
[IMPR] fix typos in logging.py
Fix typos in docstring.
Change-Id: I747933f96e7f8e54366b2e4dd8066215303055bb --- M pywikibot/logging.py 1 file changed, 6 insertions(+), 5 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/logging.py b/pywikibot/logging.py index a955887..e6162c2 100644 --- a/pywikibot/logging.py +++ b/pywikibot/logging.py @@ -35,6 +35,7 @@ from pywikibot.backports import Callable, List from pywikibot.tools import deprecated_args, issue_deprecation_warning
+ STDOUT = 16 #: VERBOSE = 18 #: INPUT = 25 #: @@ -87,7 +88,7 @@ the log message to include an exception traceback.
:param msg: The message to be printed. - :param args: Not used yet; prevents positinal arguments except `msg`. + :param args: Not used yet; prevents positional arguments except `msg`. :param level: The logging level; supported by :func:`logoutput` only. :keyword newline: If newline is True (default), a line feed will be added after printing the msg. @@ -95,7 +96,7 @@ :keyword layer: Suffix of the logger name separated by dot. By default no suffix is used. :type layer: str - :keyword decoder: If msg is bytes, this decoder is used to deccode. + :keyword decoder: If msg is bytes, this decoder is used to decode. Default is 'utf-8', fallback is 'iso8859-1' :type decoder: str :param kwargs: For the other keyword arguments refer @@ -170,7 +171,7 @@
output = info -"""Synomym for :func:`info` for backward compatibility. The arguments +"""Synonym for :func:`info` for backward compatibility. The arguments are interpreted as for :func:`logoutput`.
.. versionchanged:: 7.2 @@ -189,13 +190,13 @@
``msg`` will be sent to standard output (stdout) via :mod:`pywikibot.userinterfaces`, so that it can be piped to another - process. All other functions will sent to stderr. + process. All other functions will send to stderr. `msg` may be omitted and a newline is printed in that case.
The arguments are interpreted as for :func:`logoutput`.
.. versionchanged:: 7.2 - `text`was renamed to `msg`; `msg` paramerer 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>`
pywikibot-commits@lists.wikimedia.org