Xqt has submitted this change and it was merged.
Change subject: Disable API page preloading ......................................................................
Disable API page preloading
Change-Id: I2bb9f1c23a697a197a5ef682b8ed5d6a1dbd74fb --- M wikipedia.py 1 file changed, 2 insertions(+), 3 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/wikipedia.py b/wikipedia.py index 98da805..98b6e11 100644 --- a/wikipedia.py +++ b/wikipedia.py @@ -5504,7 +5504,7 @@ # Sometimes query does not contains revisions # or some pages are missing. Deactivate api call and use the # old API special:export - if self.site.has_api() and logger.isEnabledFor(DEBUG): + if self.site.has_api() and False: while True: try: data = self.getDataApi() @@ -5926,8 +5926,7 @@ u'Getting %(count)d page{{PLURAL:count||s}} %(API)sfrom %(site)s...', {'count': len(pages), # API is deactivated since r8036 because some pages are missing - 'API': (u'', u'via API ')[site.has_api() and - logger.isEnabledFor(DEBUG)], + 'API': (u'', u'via API ')[site.has_api() and False], 'site': site}))
# default is 500/4, but It might have good point for server.