mirror of
https://github.com/python/cpython.git
synced 2025-08-23 10:16:01 +00:00
bpo-14014: Clarify StreamWriter.reset() documentation (GH-13716)
(cherry picked from commit 1a9f51ed12
)
Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
This commit is contained in:
parent
77d5471050
commit
a3ca6747f5
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue