Xqt has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1253411?usp=email )

Change subject: [bugfix] use generator.close() instead of stop() in 
speedy_delete.py
......................................................................

[bugfix] use generator.close() instead of stop() in speedy_delete.py

BaseBot.stop() was removed in Pywikibot 7.0.0 (2022) in favour of
BaseBot.generator.close(). The deprecation was made in
Pywikibot 4.1 (2020) already.

Bug: T420169
Change-Id: I3e2b7e0778bc8fe26857b9058efdbad9f6703953
---
M scripts/speedy_delete.py
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Xqt: Verified; Looks good to me, approved




diff --git a/scripts/speedy_delete.py b/scripts/speedy_delete.py
index 7c0d8ec..8af4de8 100755
--- a/scripts/speedy_delete.py
+++ b/scripts/speedy_delete.py
@@ -447,7 +447,7 @@
         elif choice == 'u':
             pywikibot.info('Updating from CSD category.')
             self.saved_progress = page.title()
-            self.stop()
+            self.generator.close()

         # delete the current page
         elif choice == 'd':

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

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I3e2b7e0778bc8fe26857b9058efdbad9f6703953
Gerrit-Change-Number: 1253411
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to