jenkins-bot has submitted this change and it was merged.
Change subject: Suppress warning when parsing text
......................................................................
Suppress warning when parsing text
From bug:60192, parsing text should always include
contentmodel if
title is not specified. Otherwise, there will be a warning from API
(confirmed in
http://sourceforge.net/p/pywikipediabot/bugs/1641/)
Change-Id: I2b28ff54fbc750a0a91d3a1ad9f299fb64bcf620
---
M pywikibot/site.py
1 file changed, 2 insertions(+), 1 deletion(-)
Approvals:
Legoktm: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/site.py b/pywikibot/site.py
index a232365..1000e73 100644
--- a/pywikibot/site.py
+++ b/pywikibot/site.py
@@ -1045,7 +1045,8 @@
"""
r = api.Request(site=self,
action="parse",
- text="{{CURRENTTIMESTAMP}}")
+ text="{{CURRENTTIMESTAMP}}",
+ contentmodel="wikitext")
result = r.submit()
return re.search('\d+',
result['parse']['text']['*']).group()
--
To view, visit
https://gerrit.wikimedia.org/r/108341
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I2b28ff54fbc750a0a91d3a1ad9f299fb64bcf620
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Nullzero <nullzero.free(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Legoktm <legoktm.wikipedia(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: jenkins-bot