diff --git a/wandio/compressed.py b/wandio/compressed.py index 30b1268..643ece7 100644 --- a/wandio/compressed.py +++ b/wandio/compressed.py @@ -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): diff --git a/wandio/http.py b/wandio/http.py index 5a26fcc..d0ca1fd 100644 --- a/wandio/http.py +++ b/wandio/http.py @@ -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")