jenkins-bot merged this change.

View Change

Approvals: Zhuyifei1999: Looks good to me, approved jenkins-bot: Verified
[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 pywikibot/
2 files changed, 3 insertions(+), 2 deletions(-)

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/ b/pywikibot/
index 6617bf1..988c946 100644
--- a/pywikibot/
+++ b/pywikibot/
@@ -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 change 511388. To unsubscribe, or for help writing mail filters, visit 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 <>
Gerrit-Reviewer: Dalba <>
Gerrit-Reviewer: Dvorapa <>
Gerrit-Reviewer: John Vandenberg <>
Gerrit-Reviewer: Zhuyifei1999 <>
Gerrit-Reviewer: jenkins-bot (75)