jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1303478?usp=email )
Change subject: Fix spelling mistakes.
......................................................................
Fix spelling mistakes.
Change-Id: I7444c18bef13ba65d20924f04409f62b9d8cc390
---
M pywikibot/__init__.py
M pywikibot/logging.py
2 files changed, 23 insertions(+), 23 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/pywikibot/__init__.py b/pywikibot/__init__.py
index 0064d40..acd09e0 100644
--- a/pywikibot/__init__.py
+++ b/pywikibot/__init__.py
@@ -331,7 +331,7 @@
Can be called manually if desired but usually it is not necessary.
Does not clean :func:`async_manager`. This should be run when a bot
does not interact with the Wiki, or when it has stopped doing so.
- After a bot has run ``stopme()`` it will not slow down other bots
+ After a bot has run ``stopme()`` it will not slow down other bot
instances any more.
``stopme()`` is called with :func:`sleep` function during long
diff --git a/pywikibot/logging.py b/pywikibot/logging.py
index 8d08cee..17ceb80 100644
--- a/pywikibot/logging.py
+++ b/pywikibot/logging.py
@@ -5,7 +5,7 @@
#
"""User output/logging functions.
-Six output functions are defined. Each requires a ``msg`` argument
+Six output functions are defined. Each requires a ``msg`` argument.
All of these functions generate a message to the log file if
logging is enabled (`-log` or `-debug` command line arguments).
@@ -91,7 +91,7 @@
function with a different logging level.
*msg* can contain special sequences to create colored output. These
- consist of the color name in angle bracket, e. g. <<lightpurple>>.
+ consist of the color name in angle brackets, e. g. <<lightpurple>>.
<<default>> resets the color.
*args* are the arguments which are merged into *msg* using the
@@ -109,8 +109,8 @@
Positional arguments for *decoder* and *newline* are deprecated;
keyword arguments should be used.
.. version-changed:: 10.0
- *args* parameter can now given as formatting arguments directly
- to the logger.
+ *args* parameter can now be given as formatting arguments
+ directly to the logger.
:param msg: The message to be printed.
:param args: Passed as string formatter options to the logger.
@@ -158,7 +158,7 @@
``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`. *args* can
- be uses as formatting arguments for all logging functions of this
+ be used as formatting arguments for all logging functions of this
module. But this works for old ``%``-formatting only:
>>> info('Hello %s', 'World') # doctest: +SKIP
@@ -171,8 +171,8 @@
*decoder* and *newline* are deprecated; keyword arguments should
be used. Keyword parameter *layer* was added.
.. version-changed:: 10.0
- *args* parameter can now given as formatting arguments directly
- to the logger.
+ *args* parameter can now be given as formatting arguments
+ directly to the logger.
.. seealso::
:python:`Logger.info()<library/logging.html#logging.Logger.info>`
@@ -186,7 +186,7 @@
.. version-changed:: 7.2
was renamed to :func:`info`; `text` was renamed to `msg`; `msg`
- paramerer may be omitted; only keyword arguments are allowed except
+ parameter may be omitted; only keyword arguments are allowed except
for `msg`. Keyword parameter *layer* was added.
.. seealso::
:python:`Logger.info()<library/logging.html#logging.Logger.info>`
@@ -208,8 +208,8 @@
only keyword arguments are allowed except for `msg`. Keyword
parameter *layer* was added.
.. version-changed:: 10.0
- *args* parameter can now given as formatting arguments directly
- to the logger.
+ *args* parameter can now be given as formatting arguments
+ directly to the logger.
.. seealso::
- :python:`Logger.log()<library/logging.html#logging.Logger.log>`
- :wiki:`Pipeline (Unix)`
@@ -227,8 +227,8 @@
`text` was renamed to `msg`; only keyword arguments are allowed
except for `msg`. Keyword parameter *layer* was added.
.. version-changed:: 10.0
- *args* parameter can now given as formatting arguments directly
- to the logger.
+ *args* parameter can now be given as formatting arguments
+ directly to the logger.
.. seealso::
:python:`Logger.warning()<library/logging.html#logging.Logger.warning>`
"""
@@ -245,8 +245,8 @@
`text` was renamed to `msg`; only keyword arguments are allowed
except for `msg`. Keyword parameter *layer* was added.
.. version-changed:: 10.0
- *args* parameter can now given as formatting arguments directly
- to the logger.
+ *args* parameter can now be given as formatting arguments
+ directly to the logger.
.. seealso::
:python:`Logger.error()<library/logging.html#logging.Logger.error>`
"""
@@ -262,8 +262,8 @@
`text` was renamed to `msg`; only keyword arguments are allowed
except for `msg`. Keyword parameter *layer* was added.
.. version-changed:: 10.0
- *args* parameter can now given as formatting arguments directly
- to the logger.
+ *args* parameter can now be given as formatting arguments
+ directly to the logger.
.. seealso::
:python:`Logger.log()<library/logging.html#logging.Logger.log>`
"""
@@ -280,8 +280,8 @@
`text` was renamed to `msg`; only keyword arguments are allowed
except for `msg`. Keyword parameter *layer* was added.
.. version-changed:: 10.0
- *args* parameter can now given as formatting arguments directly
- to the logger.
+ *args* parameter can now be given as formatting arguments
+ directly to the logger.
.. seealso::
:python:`Logger.critical()
<library/logging.html#logging.Logger.critical>`
@@ -298,8 +298,8 @@
`layer` parameter is optional; `text` was renamed to `msg`;
only keyword arguments are allowed except for `msg`.
.. version-changed:: 10.0
- *args* parameter can now given as formatting arguments directly
- to the logger.
+ *args* parameter can now be given as formatting arguments
+ directly to the logger.
.. seealso::
:python:`Logger.debug()<library/logging.html#logging.Logger.debug>`
"""
@@ -337,8 +337,8 @@
.. version-changed:: 7.3
`exc_info` is True by default
.. version-changed:: 10.0
- *args* parameter can now given as formatting arguments directly
- to the logger.
+ *args* parameter can now be 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/+/1303478?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: I7444c18bef13ba65d20924f04409f62b9d8cc390
Gerrit-Change-Number: 1303478
Gerrit-PatchSet: 2
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]