diff --git a/files.html b/files.html index d794229..bc1b705 100644 --- a/files.html +++ b/files.html @@ -316,7 +316,7 @@ AttributeError: '_io.BufferedReader' object has no attribute 'encoding'
mode parameter contains a 'b'.
mode, which reflects the mode parameter you passed into the open() function.
name attribute, just like file objects for text files.
-encoding attribute. That makes sense, right? Youre reading (or writing) bytes, not strings, so there’s no conversion for Python to do. What you get out of a binary file is exactly what you put into it, no conversion necessary.
+encoding attribute. That makes sense, right? You’re reading (or writing) bytes, not strings, so there’s no conversion for Python to do. What you get out of a binary file is exactly what you put into it, no conversion necessary.
Did I mention you’re reading bytes? Oh yes you are.