diff --git a/files.html b/files.html index 1382c91..14f013c 100644 --- a/files.html +++ b/files.html @@ -399,7 +399,7 @@ AttributeError: '_io.BufferedReader' object has no attribute 'encoding'
-

io.StringIO lets you treat a string as a file. There’s also a io.BytesIO class, which lets you treat a byte array as a file. +

io.StringIO lets you treat a string as a text file. There’s also a io.BytesIO class, which lets you treat a byte array as a binary file.

Handling Compressed Files