jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/728420 )
Change subject: [cleanup] Remove redirected functions ......................................................................
[cleanup] Remove redirected functions
- ItemPage.concept_url method was replaced by ItemPage.concept_uri - DuplicateFilterPageGenerator was replaced by tools.filter_unique - PreloadingItemGenerator was replaced by PreloadingEntityGenerator - TextfilePageGenerator was replaced by TextIOPageGenerator
Change-Id: I6a5d54592cdbd8aeaf69caa64b0fbf445a7b1062 --- M pywikibot/page/__init__.py M pywikibot/pagegenerators.py 2 files changed, 0 insertions(+), 16 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/page/__init__.py b/pywikibot/page/__init__.py index dce0e77..dff569f 100644 --- a/pywikibot/page/__init__.py +++ b/pywikibot/page/__init__.py @@ -76,7 +76,6 @@ is_ip_address, issue_deprecation_warning, ModuleDeprecationWrapper, - redirect_func, )
@@ -4239,12 +4238,6 @@ return super().isRedirectPage()
-# alias for backwards compatibility -ItemPage.concept_url = redirect_func( - ItemPage.concept_uri, old_name='concept_url', class_name='ItemPage', - since='20170222') - - class Property:
""" diff --git a/pywikibot/pagegenerators.py b/pywikibot/pagegenerators.py index fb2494b..34b02a0 100644 --- a/pywikibot/pagegenerators.py +++ b/pywikibot/pagegenerators.py @@ -66,7 +66,6 @@ filter_unique, intersect_generators, itergroup, - redirect_func, )
@@ -3140,14 +3139,6 @@ yield page
-DuplicateFilterPageGenerator = redirect_func( - filter_unique, old_name='DuplicateFilterPageGenerator', since='20180715') -PreloadingItemGenerator = redirect_func(PreloadingEntityGenerator, - old_name='PreloadingItemGenerator', - since='20170314') -TextfilePageGenerator = redirect_func( - TextIOPageGenerator, old_name='TextfilePageGenerator', since='20210611') - if __name__ == '__main__': # pragma: no cover pywikibot.output('Pagegenerators cannot be run as script - are you ' 'looking for listpages.py?')
pywikibot-commits@lists.wikimedia.org