diff options
Diffstat (limited to 'Lib/_pyio.py')
-rw-r--r-- | Lib/_pyio.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/_pyio.py b/Lib/_pyio.py index 369bde9..d6dce6d 100644 --- a/Lib/_pyio.py +++ b/Lib/_pyio.py @@ -264,7 +264,8 @@ class IOBase(metaclass=abc.ABCMeta): Even though IOBase does not declare read, readinto, or write because their signatures will vary, implementations and clients should consider those methods part of the interface. Also, implementations - may raise a IOError when operations they do not support are called. + may raise UnsupportedOperation when operations they do not support are + called. The basic type used for binary data read from or written to a file is bytes. bytearrays are accepted too, and in some cases (such as |