aboutsummaryrefslogtreecommitdiffstats
path: root/tutorial/1-serialization/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'tutorial/1-serialization/index.html')
-rw-r--r--tutorial/1-serialization/index.html4
1 files changed, 1 insertions, 3 deletions
diff --git a/tutorial/1-serialization/index.html b/tutorial/1-serialization/index.html
index 5682989c..0561fab1 100644
--- a/tutorial/1-serialization/index.html
+++ b/tutorial/1-serialization/index.html
@@ -533,9 +533,7 @@ content
# '{"pk": 2, "title": "", "code": "print \\"hello, world\\"\\n", "linenos": false, "language": "python", "style": "friendly"}'
</code></pre>
<p>Deserialization is similar. First we parse a stream into Python native datatypes...</p>
-<pre><code># This import will use either `StringIO.StringIO` or `io.BytesIO`
-# as appropriate, depending on if we're running Python 2 or Python 3.
-from django.utils.six import BytesIO
+<pre><code>from django.utils.six import BytesIO
stream = BytesIO(content)
data = JSONParser().parse(stream)