Revision: 4095 Author: btongminh Date: 2007-08-23 13:09:56 +0000 (Thu, 23 Aug 2007)
Log Message: ----------- Properly transcode None to empty unicode.
Modified Paths: -------------- trunk/pywikipedia/image_replacer.py
Modified: trunk/pywikipedia/image_replacer.py =================================================================== --- trunk/pywikipedia/image_replacer.py 2007-08-23 13:09:23 UTC (rev 4094) +++ trunk/pywikipedia/image_replacer.py 2007-08-23 13:09:56 UTC (rev 4095) @@ -146,6 +146,8 @@ not_ok = [(wiki, namespace, page_title.decode('utf-8', 'ignore')) for wiki, namespace, page_title in self.cursor] + if not comment: comment = '' + self.reporters.append((old_image.decode('utf-8', 'ignore'), new_image.decode('utf-8', 'ignore'), user.decode('utf-8', 'ignore'),
pywikipedia-l@lists.wikimedia.org