##// END OF EJS Templates
don't 'restore_bytes' in from_JSON...
MinRK -
Show More
@@ -69,9 +69,9 b' def new_output(output_type=None, output_text=None, output_png=None,'
69 69 if output_text is not None:
70 70 output.text = unicode(output_text)
71 71 if output_png is not None:
72 output.png = bytes(output_png)
72 output.png = unicode(output_png)
73 73 if output_jpeg is not None:
74 output.jpeg = bytes(output_jpeg)
74 output.jpeg = unicode(output_jpeg)
75 75 if output_html is not None:
76 76 output.html = unicode(output_html)
77 77 if output_svg is not None:
@@ -46,7 +46,7 b' class JSONReader(NotebookReader):'
46 46 return nb
47 47
48 48 def to_notebook(self, d, **kwargs):
49 return restore_bytes(rejoin_lines(from_dict(d)))
49 return rejoin_lines(from_dict(d))
50 50
51 51
52 52 class JSONWriter(NotebookWriter):
General Comments 0
You need to be logged in to leave comments. Login now