Revision: 5655 Author: jayvdb Date: 2008-06-29 09:54:15 +0000 (Sun, 29 Jun 2008)
Log Message: ----------- Ignore codec issues coming from the djvu text
Modified Paths: -------------- trunk/pywikipedia/djvutext.py
Modified: trunk/pywikipedia/djvutext.py =================================================================== --- trunk/pywikipedia/djvutext.py 2008-06-29 09:53:10 UTC (rev 5654) +++ trunk/pywikipedia/djvutext.py 2008-06-29 09:54:15 UTC (rev 5655) @@ -119,7 +119,7 @@ cmd = "djvutxt -page=%d "%s" "%s.out"" % (pageno, self.djvu, self.djvu) os.system ( cmd )
- f = codecs.open("%s.out" % self.djvu, 'r', config.textfile_encoding) + f = codecs.open("%s.out" % self.djvu, 'r', config.textfile_encoding, 'replace')
djvutxt = f.read()
pywikipedia-l@lists.wikimedia.org