jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/616051 )

Change subject: [cleanup] Announce code2encoding(s) to be removed
......................................................................

[cleanup] Announce code2encoding(s) to be removed

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

Approvals:
  Matěj Suchánek: Looks good to me, approved
  jenkins-bot: Verified



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 https://gerrit.wikimedia.org/r/c/pywikibot/core/+/616051
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I0c7020ac7041ef8cdff1b2af4b74bfc8e153aeab
Gerrit-Change-Number: 616051
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Matěj Suchánek <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to