jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/577598 )
Change subject: [cleanup] Remove outdated has_api method
......................................................................
[cleanup] Remove outdated has_api method
has_api method was introduced for compat compatibility.
Since all supported MediaWiki has an API,
this method is superfluous. It isn't used anymore.
It is already announced to be removed from the framework.
Bug: T106121
Change-Id: I1a556fbc6a009a32f75e166805ef6426ab9a011b
---
M HISTORY.rst
M pywikibot/site.py
2 files changed, 1 insertion(+), 10 deletions(-)
Approvals:
Dvorapa: Looks good to me, approved
jenkins-bot: Verified
diff --git a/HISTORY.rst b/HISTORY.rst
index 3989473..2bb2114 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -4,6 +4,7 @@
Current release
---------------
+* Site.has_api method has been removed (T106121)
* Bugfixes and improvements
* Localisation updates
diff --git a/pywikibot/site.py b/pywikibot/site.py
index ca504ed..575b1e4 100644
--- a/pywikibot/site.py
+++ b/pywikibot/site.py
@@ -781,11 +781,6 @@
self._pagemutex = threading.Condition()
self._locked_pages = set()
- @deprecated(since='20141225', future_warning=True)
- def has_api(self):
- """Return whether this site has an API."""
- return False
-
@property
@deprecated(
"APISite.siteinfo['case'] or Namespace.case ==
'case-sensitive'",
@@ -1913,11 +1908,6 @@
return pywikibot.Site(url=site['url'] +
'/w/index.php')
raise ValueError('Cannot parse a site out of %s.' % dbname)
- @deprecated(since='20141225', future_warning=True)
- def has_api(self):
- """Return whether this site has an API."""
- return True
-
@deprecated_args(step=None)
def _generator(self, gen_class, type_arg=None, namespaces=None,
total=None, **args):
--
To view, visit
https://gerrit.wikimedia.org/r/577598
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: I1a556fbc6a009a32f75e166805ef6426ab9a011b
Gerrit-Change-Number: 577598
Gerrit-PatchSet: 3
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Dvorapa <dvorapa(a)seznam.cz>
Gerrit-Reviewer: jenkins-bot (75)