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

Change subject: replace use of deprecated FilePage.usingPages()
......................................................................

replace use of deprecated FilePage.usingPages()

Change-Id: I259c5b1398c7c219e5f78d8d3fb0a3bd4d7cce36
---
M pywikibot/page/_filepage.py
M scripts/checkimages.py
2 files changed, 3 insertions(+), 3 deletions(-)

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



diff --git a/pywikibot/page/_filepage.py b/pywikibot/page/_filepage.py
index 32fcf9f..0e61412 100644
--- a/pywikibot/page/_filepage.py
+++ b/pywikibot/page/_filepage.py
@@ -217,7 +217,7 @@

         .. versionadded:: 7.1
         """
-        return bool(list(self.usingPages(total=1)))
+        return bool(list(self.using_pages(total=1)))

     def upload(self, source: str, **kwargs) -> bool:
         """
@@ -311,7 +311,7 @@
         """
         Iterate all global usage for this page.

-        .. seealso:: :meth:`usingPages`
+        .. seealso:: :meth:`using_pages`

         :param total: iterate no more than this number of pages in total
         :return: a generator that yields Pages also on sites different from
diff --git a/scripts/checkimages.py b/scripts/checkimages.py
index b7cf1f3..ef83170 100755
--- a/scripts/checkimages.py
+++ b/scripts/checkimages.py
@@ -798,7 +798,7 @@
         Get tuples of image and time, return the most used or oldest image.

         .. versionchanged: 7.2
-           itertools.zip_longest is used to stop `usingPages` as soon as
+           itertools.zip_longest is used to stop `using_pages` as soon as
            possible.

         :param list_given: a list of tuples which hold seconds and FilePage

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/809341
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: I259c5b1398c7c219e5f78d8d3fb0a3bd4d7cce36
Gerrit-Change-Number: 809341
Gerrit-PatchSet: 1
Gerrit-Owner: JJMC89 <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to