Revision: 4144 Author: btongminh Date: 2007-08-30 10:15:53 +0000 (Thu, 30 Aug 2007)
Log Message: ----------- Use output(html) instead of print html. Never ever use print in pywikipedia, especially with unicode object. Modified patch #1784709.
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2007-08-30 10:05:12 UTC (rev 4143) +++ trunk/pywikipedia/wikipedia.py 2007-08-30 10:15:53 UTC (rev 4144) @@ -3649,7 +3649,7 @@ path = self.unwatchedpages_address(n=number) get_throttle() html = self.getUrl(path, sysop = True) - print html + output(html) entryR = re.compile('<li><a href=".+?" title="(?P<title>.+?)">.+?</a>.+?</li>') for m in entryR.finditer(html): title = m.group('title')