Revision: 8187 Author: xqt Date: 2010-05-17 20:10:05 +0000 (Mon, 17 May 2010)
Log Message: ----------- ignore user-fixes.py, use wikipedia.output()
Modified Paths: -------------- trunk/pywikipedia/isbn.py
Property Changed: ---------------- trunk/pywikipedia/
Property changes on: trunk/pywikipedia ___________________________________________________________________ Modified: svn:ignore - *.pyc *.pyo *.log *.dump *.dump.bz2 *.txt user-config.py autonomous_problems.dat sax_parse_bug.dat login-data password-file
+ *.pyc *.pyo *.log *.dump *.dump.bz2 *.txt user-config.py autonomous_problems.dat sax_parse_bug.dat login-data password-file user-fixes.py
Modified: trunk/pywikipedia/isbn.py =================================================================== --- trunk/pywikipedia/isbn.py 2010-05-17 20:00:14 UTC (rev 8186) +++ trunk/pywikipedia/isbn.py 2010-05-17 20:10:05 UTC (rev 8187) @@ -1177,11 +1177,14 @@ # convert ISBN numbers page.put(text) except pywikibot.NoPage: - print "Page %s does not exist?!" % page.aslink() + pywikibot.output(u"Page %s does not exist?!" + % page.aslink()) except pywikibot.IsRedirectPage: - print "Page %s is a redirect; skipping." % page.aslink() + pywikibot.output(u"Page %s is a redirect; skipping." + % page.aslink()) except pywikibot.LockedPage: - print "Page %s is locked?!" % page.aslink() + pywikibot.output(u"Page %s is locked?!" + % page.aslink())
class InvalidIsbnException(pywikibot.Error):
pywikipedia-svn@lists.wikimedia.org