From 234c41e9b6b940af798480f0e1aa7e7849d9db60 Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Sun, 16 Aug 2009 13:44:24 -0400 Subject: [PATCH] clarify BytesIO --- files.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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