jenkins-bot submitted this change.

View Change

Approvals: Matěj Suchánek: Looks good to me, approved jenkins-bot: Verified
[cleanup] Announce code2encoding(s) to be removed

Change-Id: I0c7020ac7041ef8cdff1b2af4b74bfc8e153aeab
---
M pywikibot/family.py
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pywikibot/family.py b/pywikibot/family.py
index bb806d0..af63297 100644
--- a/pywikibot/family.py
+++ b/pywikibot/family.py
@@ -1074,12 +1074,12 @@
return (self.encoding(code), )

# aliases
- @deprecated('Site().encoding()', since='20200218')
+ @deprecated('Site().encoding()', since='20200218', future_warning=True)
def code2encoding(self, code):
"""Return the encoding for a specific language wiki."""
return self.encoding(code)

- @deprecated('Site().encodings()', since='20200218')
+ @deprecated('Site().encodings()', since='20200218', future_warning=True)
def code2encodings(self, code):
"""Return list of historical encodings for a specific language wiki."""
return self.encodings(code)

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

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I0c7020ac7041ef8cdff1b2af4b74bfc8e153aeab
Gerrit-Change-Number: 616051
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Matěj Suchánek <matejsuchanek97@gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged