diff options
Diffstat (limited to 'Lib/io.py')
-rw-r--r-- | Lib/io.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/io.py b/Lib/io.py index c2c1067a2d0..d41da60b916 100644 --- a/Lib/io.py +++ b/Lib/io.py @@ -3,7 +3,7 @@ builtin open function is defined in this module. At the top of the I/O hierarchy is the abstract base class IOBase. It defines the basic interface to a stream. Note, however, that there is no -seperation between reading and writing to streams; implementations are +separation between reading and writing to streams; implementations are allowed to throw an IOError if they do not support a given operation. Extending IOBase is RawIOBase which deals simply with the reading and @@ -1371,7 +1371,7 @@ class TextIOWrapper(TextIOBase): enabled. With this enabled, on input, the lines endings '\n', '\r', or '\r\n' are translated to '\n' before being returned to the caller. Conversely, on output, '\n' is translated to the system - default line seperator, os.linesep. If newline is any other of its + default line separator, os.linesep. If newline is any other of its legal values, that newline becomes the newline when the file is read and it is returned untranslated. On output, '\n' is converted to the newline. |