jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/511388 )
Change subject: [tests] Announce FutureWarning with weblib methods
......................................................................
[tests] Announce FutureWarning with weblib methods
weblib methods are deprecated for 4 years in favour of memento_client
library due to T85001.
The weblib function for WebCite and the Internet Archive function
are broken. All tests are failing. Therefore announce that this
library is no longer supported and is to be removed soon.
Bug: T85001
Change-Id: I98edadcfb237e84eaa4c5b6401a684592d158611
---
M HISTORY.rst
M pywikibot/weblib.py
2 files changed, 3 insertions(+), 2 deletions(-)
Approvals:
Zhuyifei1999: Looks good to me, approved
jenkins-bot: Verified
diff --git a/HISTORY.rst b/HISTORY.rst
index f6694f9..daaa7f4 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -4,6 +4,7 @@
Current release
---------------
+* weblib module will be removed in next release (T85001)
* Bugfixes and improvements
* Localisation updates
diff --git a/pywikibot/weblib.py b/pywikibot/weblib.py
index 6617bf1..988c946 100644
--- a/pywikibot/weblib.py
+++ b/pywikibot/weblib.py
@@ -23,7 +23,7 @@
from urllib import urlencode
-@deprecated('memento_client package', since='20150811')
+@deprecated('memento_client package', since='20150811',
future_warning=True)
def getInternetArchiveURL(url, timestamp=None):
"""Return archived URL by Internet Archive.
@@ -63,7 +63,7 @@
return None
-@deprecated('memento_client package', since='20150811')
+@deprecated('memento_client package', since='20150811',
future_warning=True)
def getWebCitationURL(url, timestamp=None):
"""Return archived URL by Web Citation.
--
To view, visit
https://gerrit.wikimedia.org/r/511388
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I98edadcfb237e84eaa4c5b6401a684592d158611
Gerrit-Change-Number: 511388
Gerrit-PatchSet: 3
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: Dvorapa <dvorapa(a)seznam.cz>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Zhuyifei1999 <zhuyifei1999(a)gmail.com>
Gerrit-Reviewer: jenkins-bot (75)