jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1323988?usp=email )

Change subject: docs: Fix obvious typos
......................................................................

docs: Fix obvious typos

Correct misspelled, duplicated, and accidentally substituted words in comments 
and docstrings.

Change-Id: Iba62d1da9fcf45957cc3fbd9f0970e7247f5fc05
---
M pywikibot/__init__.py
M pywikibot/comms/http.py
M pywikibot/data/superset.py
M pywikibot/family.py
M pywikibot/i18n.py
M pywikibot/page/_user.py
M pywikibot/site/_datasite.py
M pywikibot/site/_generators.py
M pywikibot/textlib.py
M pywikibot/throttle.py
M pywikibot/time.py
M pywikibot/userinterfaces/terminal_interface_win32.py
M scripts/noreferences.py
M scripts/solve_disambiguation.py
M tests/pagegenerators_tests.py
15 files changed, 15 insertions(+), 15 deletions(-)

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




diff --git a/pywikibot/__init__.py b/pywikibot/__init__.py
index b58d0b6..49c3678 100644
--- a/pywikibot/__init__.py
+++ b/pywikibot/__init__.py
@@ -165,7 +165,7 @@

         site = pywikibot.Site('wikisource:fr')

-    .. note:: An already created site is cached an a new variable points
+    .. note:: An already created site is cached and a new variable points
        to the same object if interface, family, code and user are equal:

     >>> import pywikibot
diff --git a/pywikibot/comms/http.py b/pywikibot/comms/http.py
index a76965e..d7acd27 100644
--- a/pywikibot/comms/http.py
+++ b/pywikibot/comms/http.py
@@ -541,7 +541,7 @@
         # fix cp encodings (T304830, T307760, T312230)
         # remove delimiter in front of the code number
         # replace win/windows with cp
-        # remove language code in font of win/windows
+        # remove language code in front of win/windows
         charset = re.sub(
             r'\A(?:cp[ _\-]|(?:[a-z]+[_\-]?)?win(?:dows)?[_\-]?)(\d{3,4})',
             r'cp\1', charset)
diff --git a/pywikibot/data/superset.py b/pywikibot/data/superset.py
index 8714cd8..95f5ec2 100644
--- a/pywikibot/data/superset.py
+++ b/pywikibot/data/superset.py
@@ -76,7 +76,7 @@
         to superset.wmcloud.org. Working login expects that the user has
         manually permitted the username to login to the superset.

-        :raises NoUsernameError: if not not logged in.
+        :raises NoUsernameError: if not logged in.
         :raises ServerError: For other errors
         :return: True if user has been logged to superset
         """
diff --git a/pywikibot/family.py b/pywikibot/family.py
index 9ae3a97..3770782 100644
--- a/pywikibot/family.py
+++ b/pywikibot/family.py
@@ -52,7 +52,7 @@
        method a ``NotImplementedWarning`` will be given.
     .. version-changed:: 8.0
        ``alphabetic``, ``alphabetic_revised`` and ``fyinterwiki``
-       attributes where removed.
+       attributes were removed.
     .. version-changed:: 8.2
        :attr:`obsolete` setter was removed.
     .. version-changed:: 8.3
diff --git a/pywikibot/i18n.py b/pywikibot/i18n.py
index 89a3c93..7cfd82e 100644
--- a/pywikibot/i18n.py
+++ b/pywikibot/i18n.py
@@ -676,7 +676,7 @@

     .. note:: If *source* is a str and ``config.bot_prefix`` is set to
        None, it cannot be determined whether the current user is a bot
-       account. In this cas the prefix will be returned.
+       account. In this case the prefix will be returned.
     .. version-added:: 8.1

     :param source: When it's a site it's using the lang attribute and otherwise
diff --git a/pywikibot/page/_user.py b/pywikibot/page/_user.py
index 9a8e8c9..303378f 100644
--- a/pywikibot/page/_user.py
+++ b/pywikibot/page/_user.py
@@ -585,7 +585,7 @@

         Refer :meth:`APISite.usercontribs()
         <pywikibot.site._generators.GeneratorsMixin.usercontribs>`
-        method for for keyword parameters except of `user`and `userprefix`.
+        method for keyword parameters except for `user` and `userprefix`.

         .. version-added:: 11.6

diff --git a/pywikibot/site/_datasite.py b/pywikibot/site/_datasite.py
index 492596a..abd3a52 100644
--- a/pywikibot/site/_datasite.py
+++ b/pywikibot/site/_datasite.py
@@ -445,7 +445,7 @@
         :param summary: Edit summary
         :param bot: Whether to mark the edit as a bot edit
         :param tags: Change tags to apply to the revision
-        :raises NoPageError: missing the the snak value
+        :raises NoPageError: missing the snak value
         :raises NotImplementedError: ``claim.isReference`` or
             ``claim.isQualifier`` is given
         """
diff --git a/pywikibot/site/_generators.py b/pywikibot/site/_generators.py
index 6b57289..cc008f8 100644
--- a/pywikibot/site/_generators.py
+++ b/pywikibot/site/_generators.py
@@ -1749,7 +1749,7 @@
         :param prop: Include additional pieces of information. Refer
             :api:`Usercontribs` for the elements and the default setting.
         :param formatversion: The API format version to use for the
-            response. (``1`` by deault)
+            response. (``1`` by default)
         :raises pywikibot.exceptions.Error: either user or userprefix
             must be non-empty
         :raises KeyError: A namespace identifier was not resolved
diff --git a/pywikibot/textlib.py b/pywikibot/textlib.py
index cbea438..de11830 100644
--- a/pywikibot/textlib.py
+++ b/pywikibot/textlib.py
@@ -1947,7 +1947,7 @@
     :param categories: A list of Category or Page objects or strings which can
         be either the raw name, [[Category:..]] or [[cat_localised_ns:...]].
     :type categories: Iterable
-    :param insite: Used to to localise the category namespace.
+    :param insite: Used to localise the category namespace.
     :type insite: pywikibot.Site
     :return: String of categories
     """
diff --git a/pywikibot/throttle.py b/pywikibot/throttle.py
index 4c16c61..34fcae9 100644
--- a/pywikibot/throttle.py
+++ b/pywikibot/throttle.py
@@ -335,7 +335,7 @@

     @staticmethod
     def wait(seconds: int | float) -> None:
-        """Wait for seconds seconds.
+        """Wait for the specified number of seconds.

         Announce the delay if it exceeds a preset limit.
         """
diff --git a/pywikibot/time.py b/pywikibot/time.py
index b093e9a..0b19319 100644
--- a/pywikibot/time.py
+++ b/pywikibot/time.py
@@ -503,7 +503,7 @@
         2w - 2 weeks (14 days)
         1y - 1 year

-    :return: Key and duration extracted form the string
+    :return: Key and duration extracted from the string
     """
     if len(string) < 2:
         raise ValueError('Time period should be a numeric value followed by '
diff --git a/pywikibot/userinterfaces/terminal_interface_win32.py 
b/pywikibot/userinterfaces/terminal_interface_win32.py
index 626a589..fd67729 100644
--- a/pywikibot/userinterfaces/terminal_interface_win32.py
+++ b/pywikibot/userinterfaces/terminal_interface_win32.py
@@ -45,7 +45,7 @@
         """Set the new color."""
         fg, bg = self.divide_color(color)
         windows_color = windowsColors[fg]
-        # Merge foreground/backgroung color if needed.
+        # Merge foreground/background color if needed.
         if bg is not None:
             windows_color = windowsColors[bg] << 4 | windows_color

diff --git a/scripts/noreferences.py b/scripts/noreferences.py
index 75b59d6..ef5d3dc 100755
--- a/scripts/noreferences.py
+++ b/scripts/noreferences.py
@@ -768,7 +768,7 @@
            raise :exc:`exceptions.TranslationError` if script is not
            localized for the current site.

-        :param oldText: page text that is going to be be amended
+        :param oldText: page text that is going to be amended
         :param index: the index of oldText where the reference section
             should be inserted at
         :param ident: symbols to be inserted before and after reference
diff --git a/scripts/solve_disambiguation.py b/scripts/solve_disambiguation.py
index 4363ee8..96782d7 100755
--- a/scripts/solve_disambiguation.py
+++ b/scripts/solve_disambiguation.py
@@ -59,7 +59,7 @@
    -first      Uses only the first link of every line on the disambiguation
                page that begins with an asterisk. Useful if the page is full
                of irrelevant links that are not subject to disambiguation.
-               You won't get all af them as options, just the first on each
+               You won't get all of them as options, just the first on each
                line. For a moderated example see
                https://en.wikipedia.org/wiki/Szerdahely
                A really exotic one is
diff --git a/tests/pagegenerators_tests.py b/tests/pagegenerators_tests.py
index 1e852d8..cd5f87d 100755
--- a/tests/pagegenerators_tests.py
+++ b/tests/pagegenerators_tests.py
@@ -820,7 +820,7 @@

 class TestItemClaimFilterPageGenerator(WikidataTestCase):

-    """Test item claim filter page generator generator."""
+    """Test item claim filter page generator."""

     def _simple_claim_test(self, prop, claim, qualifiers, valid,
                            negate: bool = False) -> None:

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1323988?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: Iba62d1da9fcf45957cc3fbd9f0970e7247f5fc05
Gerrit-Change-Number: 1323988
Gerrit-PatchSet: 2
Gerrit-Owner: Mahveotm <[email protected]>
Gerrit-Reviewer: JJMC89 <[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