jenkins-bot submitted this change.
[IMPR] use simple_request instead of deprecated _simple_request
Change-Id: I3c244d9d081e64bd49e8bfc56becc0167b4e0a2a
---
M pywikibot/site/_datasite.py
M pywikibot/site/_extensions.py
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/pywikibot/site/_datasite.py b/pywikibot/site/_datasite.py
index 440134e..6a2b13c 100644
--- a/pywikibot/site/_datasite.py
+++ b/pywikibot/site/_datasite.py
@@ -654,7 +654,7 @@
}
if bot:
params['bot'] = 1
- req = self._simple_request(**params)
+ req = self.simple_request(**params)
data = req.submit()
return data
@@ -881,7 +881,7 @@
}
if baserevid:
params['baserevid'] = baserevid
- req = self._simple_request(**params)
+ req = self.simple_request(**params)
data = req.submit()
return data
@@ -906,7 +906,7 @@
}
if baserevid:
params['baserevid'] = baserevid
- req = self._simple_request(**params)
+ req = self.simple_request(**params)
data = req.submit()
return data
@@ -936,6 +936,6 @@
}
if baserevid:
params['baserevid'] = baserevid
- req = self._simple_request(**params)
+ req = self.simple_request(**params)
data = req.submit()
return data
diff --git a/pywikibot/site/_extensions.py b/pywikibot/site/_extensions.py
index d513d3a..220db27 100644
--- a/pywikibot/site/_extensions.py
+++ b/pywikibot/site/_extensions.py
@@ -750,13 +750,13 @@
"""
if not page.exists():
raise NoPageError(page)
- req = self._simple_request(action='query',
- prop='extracts',
- titles=page.title(with_section=False),
- exchars=chars,
- exsentences=sentences,
- exintro=intro,
- explaintext=plaintext)
+ req = self.simple_request(action='query',
+ prop='extracts',
+ titles=page.title(with_section=False),
+ exchars=chars,
+ exsentences=sentences,
+ exintro=intro,
+ explaintext=plaintext)
data = req.submit()['query']['pages']
if '-1' in data:
msg = data['-1'].get('invalidreason',
To view, visit change 796751. To unsubscribe, or for help writing mail filters, visit settings.