http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10898
Revision: 10898 Author: drtrigon Date: 2013-01-12 22:50:19 +0000 (Sat, 12 Jan 2013) Log Message: ----------- bug fix; Page.aslink is DEPRECATED, use Page.title(asLink=True) instead.
Modified Paths: -------------- trunk/pywikipedia/basic.py
Modified: trunk/pywikipedia/basic.py =================================================================== --- trunk/pywikipedia/basic.py 2013-01-12 18:51:22 UTC (rev 10897) +++ trunk/pywikipedia/basic.py 2013-01-12 22:50:19 UTC (rev 10898) @@ -156,7 +156,7 @@ # Save the page page.put(text, comment=comment, minorEdit=minorEdit, botflag=botflag) except pywikibot.LockedPage: - pywikibot.output(u"\03{lightblue}Page %s is locked; skipping.\03{default}" % page.aslink()) + pywikibot.output(u"\03{lightblue}Page %s is locked; skipping.\03{default}" % page.title(asLink=True)) except pywikibot.EditConflict: pywikibot.output(u'\03{lightblue}Skipping %s because of edit conflict\03{default}' % (page.title())) except pywikibot.SpamfilterError, error: