Revision: 7652 Author: alexsh Date: 2009-11-15 15:00:11 +0000 (Sun, 15 Nov 2009)
Log Message: ----------- fix query verbose coding error
Modified Paths: -------------- trunk/pywikipedia/query.py
Modified: trunk/pywikipedia/query.py =================================================================== --- trunk/pywikipedia/query.py 2009-11-15 14:40:06 UTC (rev 7651) +++ trunk/pywikipedia/query.py 2009-11-15 15:00:11 UTC (rev 7652) @@ -75,6 +75,8 @@
for k, v in params.iteritems(): if k not in ['action', 'format', 'file', 'xml']: + if not isinstance(v, unicode): + v = v.decode('utf-8') wikipedia.output(u"%s: %s" % (k, v) ) wikipedia.output(u'-' * 16 )