Skip to content

Commit dfc277c

Browse files
luoxzhgcarltongibson
authored andcommitted
Corrected tutorial 1 example renderer output to bytes. (encode#6486)
1 parent ac7b20c commit dfc277c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorial/1-serialization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ At this point we've translated the model instance into Python native datatypes.
150150

151151
content = JSONRenderer().render(serializer.data)
152152
content
153-
# '{"id": 2, "title": "", "code": "print(\\"hello, world\\")\\n", "linenos": false, "language": "python", "style": "friendly"}'
153+
# b'{"id": 2, "title": "", "code": "print(\\"hello, world\\")\\n", "linenos": false, "language": "python", "style": "friendly"}'
154154

155155
Deserialization is similar. First we parse a stream into Python native datatypes...
156156

0 commit comments

Comments
 (0)