diff options
author | Mariatta <Mariatta@users.noreply.github.com> | 2017-06-12 01:59:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-12 01:59:17 (GMT) |
commit | 7563b0508172cedb5e6a95d05e9122f1a0bfcd86 (patch) | |
tree | e16c080cf58c6990af5812899406b263571f100e | |
parent | 80bdbf6f494f4ba673606d516a4ec7ed9ed66315 (diff) | |
download | cpython-7563b0508172cedb5e6a95d05e9122f1a0bfcd86.zip cpython-7563b0508172cedb5e6a95d05e9122f1a0bfcd86.tar.gz cpython-7563b0508172cedb5e6a95d05e9122f1a0bfcd86.tar.bz2 |
bpo-30621: Update Input Output Tutorial Example(GH-2074) (GH-2119)
import json before using json module
(cherry picked from commit 1dbce04d0e3e93b715eb0d8024da396361759d16)
-rw-r--r-- | Doc/tutorial/inputoutput.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst index 5add11a..999034a 100644 --- a/Doc/tutorial/inputoutput.rst +++ b/Doc/tutorial/inputoutput.rst @@ -411,6 +411,7 @@ sent over a network connection to some distant machine. If you have an object ``x``, you can view its JSON string representation with a simple line of code:: + >>> import json >>> json.dumps([1, 'simple', 'list']) '[1, "simple", "list"]' |