Fix bug in #4971: invalid mode.

This commit is contained in:
John Schember 2010-03-02 21:36:51 -05:00
parent af5ef0cffe
commit c024252eb8

View File

@ -27,7 +27,7 @@ class Reader(FormatReader):
self.log.info('Extracting PDF...') self.log.info('Extracting PDF...')
with TemporaryFile() as pdf_n: with TemporaryFile() as pdf_n:
pdf = open(pdf_n, 'rw+b') pdf = open(pdf_n, 'rwb')
for x in xrange(self.header.section_count()): for x in xrange(self.header.section_count()):
pdf.write(self.header.section_data(x)) pdf.write(self.header.section_data(x))