Skip to content

Commit

Permalink
Ensure BufferWARCWriter reads in binary mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed May 14, 2024
1 parent c073436 commit 59680af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion warcio/warcwriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def __init__(self, *args, **kwargs):
def get_contents(self):
pos = self.out.tell()
self.out.seek(0)
buff = self.out.read()
buff = self.out.read(mode='b')
self.out.seek(pos)
return buff

Expand Down

0 comments on commit 59680af

Please sign in to comment.