Xqt has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1298406?usp=email )

Change subject: Fix documentation and spelling mistakes in bot.py
......................................................................

Fix documentation and spelling mistakes in bot.py

Change-Id: I06be30daecb6f84c9e61441d3e4f418009a0b015
Signed-off-by: Xqt <[email protected]>
---
M pywikibot/bot.py
1 file changed, 6 insertions(+), 4 deletions(-)

Approvals:
  Xqt: Verified; Looks good to me, approved
  jenkins-bot: Verified




diff --git a/pywikibot/bot.py b/pywikibot/bot.py
index d69f8c1..d827660 100644
--- a/pywikibot/bot.py
+++ b/pywikibot/bot.py
@@ -781,7 +781,9 @@
                 config.family = config.mylang = value
         elif option == '-family':
             config.family = value
-        elif option in ('-code', '-lang'):  # -lang might be deprecated later
+        elif option in ('-code', '-lang'):
+            # -lang is kept for backward compatibility and might be deprecated
+            # later; prefer -code
             config.mylang = value
         elif option == '-user':
             username = value
@@ -1197,7 +1199,7 @@
         """Instance attribute which is True if the :attr:`generator` is
         completed.

-        It gives False if the the generator processing in :meth:`run` is
+        It gives False if the generator processing in :meth:`run` is
         either interrupted by ``KeyboardInterrupt`` or exited by
         :exc:`QuitKeyboardInterrupt` while closing the generator i.e.
         :code:`self.generator.close()` keeps the value True.
@@ -1430,8 +1432,8 @@
         :attr:`treat_page_type` even when the generator returns
         something else.

-        Also used to set the arrange the current site. This is called
-        before :meth:`skip_page` and :meth:`treat`.
+        Also used to set the current site. This is called before
+        :meth:`skip_page` and :meth:`treat`.

         :param item: Any item from :attr:`generator`
         :return: Return the page object to be processed further

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1298406?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: I06be30daecb6f84c9e61441d3e4f418009a0b015
Gerrit-Change-Number: 1298406
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]

Reply via email to