http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9213
Revision: 9213 Author: xqt Date: 2011-05-04 04:40:11 +0000 (Wed, 04 May 2011) Log Message: ----------- input message varies by -undelete option; requested by Tgr (bug #3114570)
Modified Paths: -------------- trunk/pywikipedia/delete.py
Modified: trunk/pywikipedia/delete.py =================================================================== --- trunk/pywikipedia/delete.py 2011-05-04 03:59:16 UTC (rev 9212) +++ trunk/pywikipedia/delete.py 2011-05-04 04:40:11 UTC (rev 9213) @@ -206,7 +206,8 @@ mysite = pywikibot.getSite() if doSinglePage: if not summary: - summary = pywikibot.input(u'Enter a reason for the deletion:') + summary = pywikibot.input(u'Enter a reason for the %sdeletion:' + % ['', 'un'][undelete]) page = pywikibot.Page(mysite, pageName) gen = iter([page]) elif doCategory: