jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/796751 )
Change subject: [IMPR] use simple_request instead of deprecated _simple_request
......................................................................
[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(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
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 https://gerrit.wikimedia.org/r/c/pywikibot/core/+/796751
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: I3c244d9d081e64bd49e8bfc56becc0167b4e0a2a
Gerrit-Change-Number: 796751
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[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]