mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix bug in #4971: invalid mode.
This commit is contained in:
parent
af5ef0cffe
commit
c024252eb8
@ -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))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user