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

Change subject: doc: Fix several spelling mistakes
......................................................................

doc: Fix several spelling mistakes

Change-Id: I6f4059f724a4d880d94b520dfd912ed3199c2c69
---
M HISTORY.rst
M README.rst
M pywikibot/config.py
M pywikibot/exceptions.py
M pywikibot/page/_basepage.py
M pywikibot/site/_apisite.py
M pywikibot/textlib.py
M pywikibot/tools/__init__.py
M setup.py
9 files changed, 18 insertions(+), 16 deletions(-)

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




diff --git a/HISTORY.rst b/HISTORY.rst
index 49009cf..8e4f55d 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -5,7 +5,7 @@
 ------
 *11 July 2026*

-* Dreprecate ``cross_projects`` :mod:`family.Family` settings (:phab:`T431178`)
+* Deprecate ``cross_projects`` :mod:`family.Family` settings (:phab:`T431178`)
 * Deprecate :func:`family.Family.post_get_convert` and
   :func:`family.Family.pre_put_convert` functions (:phab:`T431188`)
 * Update :mod:`families.wikiquote_family`
diff --git a/README.rst b/README.rst
index 41d24b9..cbaebc4 100644
--- a/README.rst
+++ b/README.rst
@@ -128,7 +128,7 @@
                 options[opt[1:]] = value
         MyBot(generator=gen_factory.getCombinedGenerator(), **options).run()
 
-    if __name == '__main__':
+    if __name__ == '__main__':
         main()


diff --git a/pywikibot/config.py b/pywikibot/config.py
index 405a183..4830dd2 100644
--- a/pywikibot/config.py
+++ b/pywikibot/config.py
@@ -154,7 +154,7 @@
 # True for enabling fake UA, False for disabling / using pywikibot's own UA,
 # str to specify custom UA.
 fake_user_agent_default = {'reflinks': False, 'weblinkchecker': False}
-# Website domains excepted to the default behaviour.
+# Website domains that are exceptions to the default behaviour.
 # True for enabling, False for disabling, str to hardcode a UA.
 # Example: {'problematic.site.example': True,
 #           'prefers.specific.ua.example': 'snakeoil/4.2'}
diff --git a/pywikibot/exceptions.py b/pywikibot/exceptions.py
index 7aa1831..3ff630c 100644
--- a/pywikibot/exceptions.py
+++ b/pywikibot/exceptions.py
@@ -77,7 +77,6 @@
 Error: Base class, all exceptions should the subclass of this class.

   - CaptchaError: Captcha is asked and config.solve_captcha == False
-  - ClientError: A problem with the client request
   - AutoblockUserError: requested action on a virtual autoblock user not valid
   - InvalidTitleError: Invalid page title
   - NoUsernameError: Username is not in user config file, or it is invalid.
@@ -134,9 +133,12 @@
 ServerError: a problem with the server.

   - FatalServerError: A fatal/non-recoverable server error
-  - Server414Error: Server timed out with HTTP 414 code
   - Server504Error: Server timed out with HTTP 504 code

+ClientError: A problem with the client request
+
+  - Client414Error: HTTP 414 code - URI too long
+
 WikiBaseError: any issue specific to Wikibase.

   - NoWikibaseEntityError: entity doesn't exist
diff --git a/pywikibot/page/_basepage.py b/pywikibot/page/_basepage.py
index 5062f00..7dcfc50 100644
--- a/pywikibot/page/_basepage.py
+++ b/pywikibot/page/_basepage.py
@@ -1437,7 +1437,7 @@
         """Save the page with the contents of the first argument as the text.

         This method is maintained primarily for backwards-compatibility.
-        For new code, using :meth:`save` is preferred; also ee that
+        For new code, using :meth:`save` is preferred; also see that
         method docs for all parameters not listed here.

         .. version-added:: 7.0
diff --git a/pywikibot/site/_apisite.py b/pywikibot/site/_apisite.py
index 772da46..6965b9c 100644
--- a/pywikibot/site/_apisite.py
+++ b/pywikibot/site/_apisite.py
@@ -1113,14 +1113,14 @@
     ) -> str:
         """Parse the given text for preprocessing and rendering.

-        e.g expand templates and strip comments if includecomments
-        parameter is not True. Keeps text inside <nowiki></nowiki> tags
-        unchanges etc. Can be used to parse magic parser words like
+        Expand templates and strip comments if *includecomments*
+        parameter is not ``True``. Keeps text inside ``<nowiki></nowiki>``
+        tags unchanged. Can be used to parse magic parser words like
         {{CURRENTTIMESTAMP}}.

         :param text: Text to be expanded
         :param title: Page title without section
-        :param includecomments: If True do not strip comments
+        :param includecomments: If ``True`` do not strip comments
         """
         if not isinstance(text, str):
             raise ValueError('text must be a string')
diff --git a/pywikibot/textlib.py b/pywikibot/textlib.py
index a5d594f..b4fd34f 100644
--- a/pywikibot/textlib.py
+++ b/pywikibot/textlib.py
@@ -577,7 +577,7 @@
         and markup. Defaults to :code:`['tt', 'nowiki', 'small', 'sup']`
         if None.
     :param removetags: List of tag names whose tags and content should
-        be removed. The tags ca be preserved if listed in *keeptags*.
+        be removed. The tags can be preserved if listed in *keeptags*.
         Defaults to :code:`['style', 'script']` if None.
     :return: The cleaned text with specified HTML parts removed.
     """
@@ -1799,7 +1799,7 @@
     :param oldtext: Content of the old category
     :param oldcat: :class:`pywikibot.Category` object of the old
         category
-    :param newcat: :class:`Pywikibot.Category` object of the new
+    :param newcat: :class:`pywikibot.Category` object of the new
         category
     :param add_only: If add_only is True, the old category won't be
         replaced and the category given will be added after it.
diff --git a/pywikibot/tools/__init__.py b/pywikibot/tools/__init__.py
index 940cf96..dda6e78 100644
--- a/pywikibot/tools/__init__.py
+++ b/pywikibot/tools/__init__.py
@@ -884,9 +884,9 @@
     Result is expressed as hexdigest().

     .. version-added:: 3.0
-     .. version-changed:: 8.2
-         The *sha* parameter may also be a hash constructor, or a callable
-         that returns a hash object.
+    .. version-changed:: 8.2
+       The *sha* parameter may also be a hash constructor, or a callable
+       that returns a hash object.


     :param filename: Filename path
diff --git a/setup.py b/setup.py
index 419974c..66ffcbe 100755
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,7 @@
     make_dist -remote

 - create a new tag with the version number of the final release
-- synchronize the local tags with the remote repositoy
+- synchronize the local tags with the remote repository
 - merge current master branch to stable branch
 - push new stable branch to Gerrit and merge it the stable repository
 - prepare the next master release by increasing the version number in

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