lib/__builtins__/stream.py | raw changeset files shortlog |
1.1 --- a/lib/__builtins__/stream.py Mon Jun 28 22:29:21 2021 +0200 1.2 +++ b/lib/__builtins__/stream.py Tue Jun 29 22:24:09 2021 +0200 1.3 @@ -144,7 +144,7 @@ 1.4 # Encode text as bytes if necessary. When the encoding is not set, any 1.5 # original encoding of the text will be applied. 1.6 1.7 - if _isinstance(s, utf8string): 1.8 + if _isinstance(s, unicode): 1.9 s = s.encode(self.encoding) 1.10 1.11 fwrite(self.__data__, s)