jenkins-bot has submitted this change and it was merged.
Change subject: allow saving a page with empty text ......................................................................
allow saving a page with empty text
by checking "if text is None" instead of "if not text"
http://lists.wikimedia.org/pipermail/pywikipedia-l/2014-May/008740.html
Change-Id: I26426394ae4844a029c5867446d481d53faae68d --- M pywikibot/site.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/site.py b/pywikibot/site.py index c178191..a22d8e7 100644 --- a/pywikibot/site.py +++ b/pywikibot/site.py @@ -2692,7 +2692,7 @@
""" text = page.text - if not text: + if text is None: raise Error("editpage: no text to be saved") try: lastrev = page.latestRevision()
pywikibot-commits@lists.wikimedia.org