##// END OF EJS Templates
Use stdlib json, not zmq jsonapi
Thomas Kluyver -
Show More
@@ -2,11 +2,9 b''
2
2
3 # Copyright (c) IPython Development Team.
3 # Copyright (c) IPython Development Team.
4 # Distributed under the terms of the Modified BSD License.
4 # Distributed under the terms of the Modified BSD License.
5
5 import json
6 from tornado import web
6 from tornado import web
7
7
8 from zmq.utils import jsonapi
9
10 from ...base.handlers import IPythonHandler, json_errors
8 from ...base.handlers import IPythonHandler, json_errors
11
9
12
10
@@ -24,7 +22,7 b' class MainKernelSpecHandler(IPythonHandler):'
24 results.append(d)
22 results.append(d)
25
23
26 self.set_header("Content-Type", 'application/json')
24 self.set_header("Content-Type", 'application/json')
27 self.finish(jsonapi.dumps(results))
25 self.finish(json.dumps(results))
28
26
29
27
30 class KernelSpecHandler(IPythonHandler):
28 class KernelSpecHandler(IPythonHandler):
General Comments 0
You need to be logged in to leave comments. Login now