Revision: 8778 Author: valhallasw Date: 2010-12-13 23:08:08 +0000 (Mon, 13 Dec 2010) Log Message: ----------- Partial revert of r6605
getLabel already returned a double-quoted (...) string, and was now returning a double-double-quoted (...), string, which was incorrect behavior. The bug tracker for the r6605 issue [1999787] shows the issue was related to URLs and not page titles, so this revert should not introduce any regressions.
Modified Paths: -------------- trunk/pywikipedia/interwiki_graph.py
Modified: trunk/pywikipedia/interwiki_graph.py =================================================================== --- trunk/pywikipedia/interwiki_graph.py 2010-12-13 23:07:45 UTC (rev 8777) +++ trunk/pywikipedia/interwiki_graph.py 2010-12-13 23:08:08 UTC (rev 8778) @@ -49,7 +49,7 @@ self.subject = subject
def getLabel(self, page): - return (u'""%s:%s""' % (page.site().language(), + return (u'"%s:%s"' % (page.site().language(), page.title())).encode('utf-8')
def addNode(self, page):