diff options
author | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2022-10-07 01:01:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-07 01:01:30 (GMT) |
commit | fa2d43e5184f5eaf3391844ec2400342a1b2ead4 (patch) | |
tree | faa2f2ae684d96fd9bd81e5bc28a99bf96274254 /Doc/library/io.rst | |
parent | 27025e158c70331d0a8fb42fe234a2a6770850d1 (diff) | |
download | cpython-fa2d43e5184f5eaf3391844ec2400342a1b2ead4.zip cpython-fa2d43e5184f5eaf3391844ec2400342a1b2ead4.tar.gz cpython-fa2d43e5184f5eaf3391844ec2400342a1b2ead4.tar.bz2 |
Docs: Fix backtick errors found by sphinx-lint (#97998)
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Diffstat (limited to 'Doc/library/io.rst')
-rw-r--r-- | Doc/library/io.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/io.rst b/Doc/library/io.rst index 8fd6b35..0968509 100644 --- a/Doc/library/io.rst +++ b/Doc/library/io.rst @@ -1055,10 +1055,10 @@ Text I/O The initial value of the buffer can be set by providing *initial_value*. If newline translation is enabled, newlines will be encoded as if by :meth:`~TextIOBase.write`. The stream is positioned at the start of the - buffer which emulates opening an existing file in a `w+` mode, making it + buffer which emulates opening an existing file in a ``w+`` mode, making it ready for an immediate write from the beginning or for a write that - would overwrite the initial value. To emulate opening a file in an `a+` - mode ready for appending, use `f.seek(0, io.SEEK_END)` to reposition the + would overwrite the initial value. To emulate opening a file in an ``a+`` + mode ready for appending, use ``f.seek(0, io.SEEK_END)`` to reposition the stream at the end of the buffer. The *newline* argument works like that of :class:`TextIOWrapper`, |