Xqt submitted this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[doc] Fix spelling mistake

Change-Id: I8efb85e26ff91622c9d11ebc7bfe36c7233c3917
---
M HISTORY.rst
M pywikibot/page/__init__.py
2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/HISTORY.rst b/HISTORY.rst
index f12a0fb..953d749 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -458,7 +458,7 @@
* Only run cosmetic changes on wikitext pages (T260489)
* Leave a script gracefully for wrong -lang and -family option (T259756)
* Change meaning of BasePage.text (T260472)
-* site/family methods code2encodings() and code2encoding() has been removed in favour of encoding()/endcodings() methods
+* site/family methods code2encodings() and code2encoding() has been removed in favour of encoding()/encodings() methods
* Site.getExpandedString() method was removed in favour of expand_text
* Site.Family() function was removed in favour of Family.load() method
* Add wikispore family (T260049)
diff --git a/pywikibot/page/__init__.py b/pywikibot/page/__init__.py
index e5f3366..3c5aca7 100644
--- a/pywikibot/page/__init__.py
+++ b/pywikibot/page/__init__.py
@@ -5871,11 +5871,13 @@

@deprecated('pywikibot.tools.chars.url2string', since='6.2.0')
def url2unicode(title: str, encodings='utf-8') -> str:
- """
- DEPRECATED. Convert URL-encoded text to unicode using several encoding.
+ """Convert URL-encoded text to unicode using several encoding.

Uses the first encoding that doesn't cause an error.

+ .. deprecated:: 6.2.0
+ Use :func:`pywikibot.tools.chars.url2string` instead.
+
:param title: URL-encoded character data to convert
:param encodings: Encodings to attempt to use during conversion.
:type encodings: str, list or Site
@@ -5887,7 +5889,7 @@
encodings = encodings.encodings()
issue_deprecation_warning(
'Passing BaseSite object to encodings parameter',
- 'BaseSite.endcodings()',
+ 'BaseSite.encodings()',
depth=1,
since='6.2.0'
)

To view, visit change 759887. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I8efb85e26ff91622c9d11ebc7bfe36c7233c3917
Gerrit-Change-Number: 759887
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged