User "Xqt" posted a comment on pywikipedia.r9684. Full URL: http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9684#c25184 Commit summary:
use "xmlcharrefreplace" replacement and forceInterwiki for Page.__str__()from rewrite branch Comment: I just actualized it from rewrite branch. I guess this could be used for sth like <code>print page</code> or <code>"%s" % page</code> assignment and other string operations used by <code>str(page)</code>, whereas <code>u"%s" % page</code> uses <code>page.__unicode__()</code> We don't need the title() method for that.encoding() prevents raising errors if the title isn't really a string but unicode. "replace" replaces it with questionmarks whereas "xmlcharrefreplace" replaces them with html entities. _______________________________________________ MediaWiki-CodeReview mailing list mediawiki-coderev...@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview