jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/674565 )
Change subject: [cleanup] remove getSite function ......................................................................
[cleanup] remove getSite function
getSite is deprecated for 5 years and FutureWarning is shown with 5.0.0. This function is different from Site.getSite() method.
Change-Id: I5f388116b324e7e185e19225f35ebddb2999cf4d --- M pywikibot/__init__.py 1 file changed, 0 insertions(+), 6 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/__init__.py b/pywikibot/__init__.py index 0ac60bb..e2a4292 100644 --- a/pywikibot/__init__.py +++ b/pywikibot/__init__.py @@ -58,7 +58,6 @@ normalize_username, MediaWikiVersion as _MediaWikiVersion, ModuleDeprecationWrapper as _ModuleDeprecationWrapper, - redirect_func, ) from pywikibot.tools.formatter import color_format
@@ -1161,11 +1160,6 @@ return _sites[key]
-# alias for backwards-compability -getSite = redirect_func(Site, old_name='getSite', since='20150924', - future_warning=True) - - # These imports depend on Wb* classes above. from pywikibot.page import ( # noqa: E402 Page,
pywikibot-commits@lists.wikimedia.org