mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
py3: more bytestring fixups while porting unicode_literals
This commit is contained in:
parent
89e2638cdd
commit
85884e3fdd
@ -40,7 +40,7 @@ class Reader(FormatReader):
|
||||
|
||||
self.stream.seek(0)
|
||||
raw_data = self.stream.read()
|
||||
data = ''
|
||||
data = b''
|
||||
mo = re.search(br'%PDF.+%%EOF', raw_data, flags=re.DOTALL)
|
||||
if mo:
|
||||
data = mo.group()
|
||||
|
Loading…
x
Reference in New Issue
Block a user