Revision: 6796 Author: russblau Date: 2009-05-02 20:23:36 +0000 (Sat, 02 May 2009)
Log Message: ----------- fix Bug #2785484 in Page.__str__()
Modified Paths: -------------- branches/rewrite/pywikibot/page.py
Modified: branches/rewrite/pywikibot/page.py =================================================================== --- branches/rewrite/pywikibot/page.py 2009-05-02 17:57:23 UTC (rev 6795) +++ branches/rewrite/pywikibot/page.py 2009-05-02 20:23:36 UTC (rev 6796) @@ -213,7 +213,8 @@ def __str__(self): """Return a console representation of the pagelink.""" return self.title(asLink=True, forceInterwiki=True - ).encode(config.console_encoding) + ).encode(config.console_encoding, + "xmlcharrefreplace")
def __unicode__(self): return self.title(asLink=True, forceInterwiki=True)