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/
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pywikibot/ b/pywikibot/
index bb806d0..af63297 100644
--- a/pywikibot/
+++ b/pywikibot/
@@ -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 <>
Gerrit-Reviewer: Matěj Suchánek <>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged