Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/759887 )
Change subject: [doc] Fix spelling mistake ......................................................................
[doc] Fix spelling mistake
Change-Id: I8efb85e26ff91622c9d11ebc7bfe36c7233c3917 --- M HISTORY.rst M pywikibot/page/__init__.py 2 files changed, 6 insertions(+), 4 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
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' )
pywikibot-commits@lists.wikimedia.org