py3: more bytestring fixups while porting unicode_literals

This commit is contained in:
Eli Schwartz 2019-05-26 21:16:40 -04:00
parent 89e2638cdd
commit 85884e3fdd
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6

View File

@ -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()