diff options
Diffstat (limited to 'Doc/library/io.rst')
-rw-r--r-- | Doc/library/io.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/io.rst b/Doc/library/io.rst index 7068e68..473e8c8 100644 --- a/Doc/library/io.rst +++ b/Doc/library/io.rst @@ -249,7 +249,7 @@ I/O Base Classes :class:`IOBase` is also a context manager and therefore supports the :keyword:`with` statement. In this example, *file* is closed after the - :keyword:`with` statement's suite is finished---even if an exception occurs:: + :keyword:`!with` statement's suite is finished---even if an exception occurs:: with open('spam.txt', 'w') as file: file.write('Spam and eggs!') |