jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/656980 )

Change subject: [fix] Replace ReferringPageGenerator with getReferences
......................................................................

[fix] Replace ReferringPageGenerator with getReferences

Change-Id: I68c2ccc799a5a5840bcd6da1f0b4f106d7c439cd
---
M scripts/template.py
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/scripts/template.py b/scripts/template.py
index cfcfb13..591047a 100755
--- a/scripts/template.py
+++ b/scripts/template.py
@@ -298,8 +298,8 @@

     if not gen:
         gens = (
-            pagegenerators.ReferringPageGenerator(t,
-                                                  onlyTemplateInclusion=True)
+            t.getReferences(only_template_inclusion=True,
+                            follow_redirects=False)
             for t in old_templates
         )
         gen = chain(*gens)

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/656980
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I68c2ccc799a5a5840bcd6da1f0b4f106d7c439cd
Gerrit-Change-Number: 656980
Gerrit-PatchSet: 2
Gerrit-Owner: JJMC89 <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to