jenkins-bot has submitted this change and it was merged.

Change subject: Remove deprecated 'throttle' argument from BasePage.get() calls
......................................................................


Remove deprecated 'throttle' argument from BasePage.get() calls

It has been marked as deprecated by Russell Blau
with commit 3e8ea74a5c85016dd4eb15c1d8f4324805953976

Change-Id: Ib7812dd6c7bf0ae7cec657910a9e9cb6e275bfba
---
M scripts/imagetransfer.py
M scripts/solve_disambiguation.py
2 files changed, 5 insertions(+), 5 deletions(-)

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



diff --git a/scripts/imagetransfer.py b/scripts/imagetransfer.py
index bb16569..12d4e3e 100644
--- a/scripts/imagetransfer.py
+++ b/scripts/imagetransfer.py
@@ -234,7 +234,7 @@
                              % (i, image.title(asLink=True)))
             try:
                 # Show the image description page's contents
-                pywikibot.output(image.get(throttle=False))
+                pywikibot.output(image.get())
                 # look if page already exists with this name.
                 # TODO: consider removing this: a different image of the same
                 # name may exist on the target wiki, and the bot user may want
@@ -244,11 +244,11 @@
                     targetTitle = '%s:%s' % (self.targetSite.image_namespace(),
                                              image.title().split(':', 1)[1])
                     targetImage = pywikibot.Page(self.targetSite, targetTitle)
-                    targetImage.get(throttle=False)
+                    targetImage.get()
                     pywikibot.output(u"Image with this name is already on %s."
                                      % self.targetSite)
                     print("-" * 60)
-                    pywikibot.output(targetImage.get(throttle=False))
+                    pywikibot.output(targetImage.get())
                     sys.exit()
                 except pywikibot.NoPage:
                     # That's the normal case
diff --git a/scripts/solve_disambiguation.py b/scripts/solve_disambiguation.py
index a0a9aa1..0374f5c 100644
--- a/scripts/solve_disambiguation.py
+++ b/scripts/solve_disambiguation.py
@@ -560,7 +560,7 @@
         unlink = False
         new_targets = []
         try:
-            text = refPage.get(throttle=False)
+            text = refPage.get()
             ignoreReason = self.checkContents(text)
             if ignoreReason:
                 pywikibot.output('\n\nSkipping %s because it contains %s.\n\n'
@@ -596,7 +596,7 @@
                         if not self.treat(refPage2, refPage):
                             break
                 elif choice == 'c':
-                    text = refPage.get(throttle=False, get_redirect=True)
+                    text = refPage.get(get_redirect=True)
                     include = "redirect"
         except pywikibot.NoPage:
             pywikibot.output(

-- 
To view, visit https://gerrit.wikimedia.org/r/179770
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib7812dd6c7bf0ae7cec657910a9e9cb6e275bfba
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Ricordisamoa <ricordisa...@openmailbox.org>
Gerrit-Reviewer: John Vandenberg <jay...@gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgr...@gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhall...@arctus.nl>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
Pywikibot-commits mailing list
Pywikibot-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to