Skip to content

Commit

Permalink
Merge pull request #20 from CAIDA/default-encoding
Browse files Browse the repository at this point in the history
set "utf-8" as default encoding option
  • Loading branch information
alistairking authored May 26, 2020
2 parents 415d2e3 + cdc5267 commit 1442d40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wandio/compressed.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def readline(self):
break
if not len(res) and not len(self.buf) and self.eof:
return None
return res.decode()
return res.decode("utf-8")


class CompressedWriter(wandio.file.GenericWriter):
Expand Down
2 changes: 1 addition & 1 deletion wandio/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ def __init__(self, url):
super(HttpReader, self).__init__(urlopen(self.url))

def __next__(self):
return next(self.fh).decode()
return next(self.fh).decode("utf-8")

0 comments on commit 1442d40

Please sign in to comment.