summaryrefslogtreecommitdiffstats
path: root/Lib/codecs.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-01-06 02:27:30 (GMT)
committerGitHub <noreply@github.com>2021-01-06 02:27:30 (GMT)
commita3ca6747f50efa2fe59caf516a26b0fd1912b8e8 (patch)
tree376f2b48cf7550efe6b1c3a6bb0086ba0d4a646d /Lib/codecs.py
parent77d54710506b67e48b50bb1758fb31fc33a33c83 (diff)
downloadcpython-a3ca6747f50efa2fe59caf516a26b0fd1912b8e8.zip
cpython-a3ca6747f50efa2fe59caf516a26b0fd1912b8e8.tar.gz
cpython-a3ca6747f50efa2fe59caf516a26b0fd1912b8e8.tar.bz2
bpo-14014: Clarify StreamWriter.reset() documentation (GH-13716)
(cherry picked from commit 1a9f51ed12feb4d95ad6d0faf610a030c05b9f5e) Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
Diffstat (limited to 'Lib/codecs.py')
-rw-r--r--Lib/codecs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/codecs.py b/Lib/codecs.py
index 7f23e97..d2edd14 100644
--- a/Lib/codecs.py
+++ b/Lib/codecs.py
@@ -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