[Pywikipedia-l] SVN: [4733] trunk/pywikipedia/pagegenerators.py
rotem at svn.wikimedia.org
rotem at svn.wikimedia.org
Tue Dec 18 17:48:47 UTC 2007
Revision: 4733
Author: rotem
Date: 2007-12-18 17:48:42 +0000 (Tue, 18 Dec 2007)
Log Message:
-----------
Pass unicode, not string, to wikipedia.output.
Modified Paths:
--------------
trunk/pywikipedia/pagegenerators.py
Modified: trunk/pywikipedia/pagegenerators.py
===================================================================
--- trunk/pywikipedia/pagegenerators.py 2007-12-18 17:46:49 UTC (rev 4732)
+++ trunk/pywikipedia/pagegenerators.py 2007-12-18 17:48:42 UTC (rev 4733)
@@ -629,7 +629,7 @@
self.queue.put(refpage)
self.queue.put(None) # to signal end of list
except Exception, e:
- wikipedia.output(str(e))
+ wikipedia.output(unicode(e))
self.queue.put(None) # to signal end of list
def PreloadingGenerator(generator, pageNumber=60):
More information about the Pywikipedia-l
mailing list