diff options
author | Walter Dörwald <walter@livinglogic.de> | 2003-02-02 23:08:27 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2003-02-02 23:08:27 (GMT) |
commit | 7f3ed74643dd87ef9b6f54c235e4c562179cfb33 (patch) | |
tree | 977531b9bba26860fb96fb531a0633afc68bf1f3 | |
parent | cc94764c67f6fbb73caecec5afabef7327b15ac7 (diff) | |
download | cpython-7f3ed74643dd87ef9b6f54c235e4c562179cfb33.zip cpython-7f3ed74643dd87ef9b6f54c235e4c562179cfb33.tar.gz cpython-7f3ed74643dd87ef9b6f54c235e4c562179cfb33.tar.bz2 |
Fix typos.
-rw-r--r-- | Lib/codecs.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/codecs.py b/Lib/codecs.py index 1bf4c8d..061bc1c 100644 --- a/Lib/codecs.py +++ b/Lib/codecs.py @@ -280,7 +280,7 @@ class StreamReader(Codec): the line breaking knowledge from the underlying stream's .readline() method -- there is currently no support for line breaking using the codec decoder due to lack of line - buffering. Sublcasses should however, if possible, try to + buffering. Subclasses should however, if possible, try to implement this method using their own knowledge of line breaking. @@ -539,12 +539,12 @@ def open(filename, mode='rb', encoding=None, errors='strict', buffering=1): Unicode as well. Files are always opened in binary mode, even if no binary mode - was specified. Thisis done to avoid data loss due to encodings + was specified. This is done to avoid data loss due to encodings using 8-bit values. The default file mode is 'rb' meaning to open the file in binary read mode. encoding specifies the encoding which is to be used for the - the file. + file. errors may be given to define the error handling. It defaults to 'strict' which causes ValueErrors to be raised in case an @@ -670,7 +670,7 @@ def make_encoding_map(decoding_map): """ Creates an encoding map from a decoding map. - If a target mapping in the decoding map occurrs multiple + If a target mapping in the decoding map occurs multiple times, then that target is mapped to None (undefined mapping), causing an exception when encountered by the charmap codec during translation. |