Update codecs.py to CPython 3.10

This commit is contained in:
Padraic Fanning committed 2022-02-18 21:36:24 -05:00
1 parent ccb24341c5
commit ad13373fdb
1 file changed
+3 -3
+3 -3
View File
@@ -83,7 +83,7 @@ BOM64_BE = BOM_UTF32_BE
class CodecInfo(tuple):
"""Codec details when looking up the codec registry"""
# Private API to allow Python 3.4 to blacklist the known non-Unicode
# Private API to allow Python 3.4 to denylist the known non-Unicode
# codecs in the standard library. A more general mechanism to
# reliably distinguish test encodings from other codecs will hopefully
# be defined for Python 3.5
@@ -386,7 +386,7 @@ class StreamWriter(Codec):
def reset(self):
""" Flushes and resets the codec buffers used for keeping state.
""" Resets the codec buffers used for keeping internal state.
Calling this method should ensure that the data on the
output is put into a clean state, that allows appending
@@ -620,7 +620,7 @@ class StreamReader(Codec):
def reset(self):
""" Resets the codec buffers used for keeping state.
""" Resets the codec buffers used for keeping internal state.
Note that no stream repositioning should take place.
This method is primarily intended to be able to recover