Revision: 6392 Author: russblau Date: 2009-02-20 20:55:52 +0000 (Fri, 20 Feb 2009)
Log Message: ----------- fix bug in debugging code <g>
Modified Paths: -------------- branches/rewrite/pywikibot/data/api.py
Modified: branches/rewrite/pywikibot/data/api.py =================================================================== --- branches/rewrite/pywikibot/data/api.py 2009-02-20 15:58:57 UTC (rev 6391) +++ branches/rewrite/pywikibot/data/api.py 2009-02-20 20:55:52 UTC (rev 6392) @@ -200,9 +200,9 @@ level=pywikibot.VERBOSE) self.wait() continue - logger.debug(u"API response received:\n%s" % rawdata) if not isinstance(rawdata, unicode): rawdata = rawdata.decode(self.site.encoding()) + logger.debug(u"API response received:\n" + rawdata) if rawdata.startswith(u"unknown_action"): raise APIError(rawdata[:14], rawdata[16:]) try:
pywikipedia-l@lists.wikimedia.org