Show More
@@ -43,7 +43,6 b' from zmq.utils import jsonapi' | |||||
43 | from zmq.eventloop.ioloop import IOLoop |
|
43 | from zmq.eventloop.ioloop import IOLoop | |
44 | from zmq.eventloop.zmqstream import ZMQStream |
|
44 | from zmq.eventloop.zmqstream import ZMQStream | |
45 |
|
45 | |||
46 | import IPython |
|
|||
47 | from IPython.config.application import Application, boolean_flag |
|
46 | from IPython.config.application import Application, boolean_flag | |
48 | from IPython.config.configurable import Configurable, LoggingConfigurable |
|
47 | from IPython.config.configurable import Configurable, LoggingConfigurable | |
49 | from IPython.utils.importstring import import_item |
|
48 | from IPython.utils.importstring import import_item | |
@@ -78,7 +77,6 b' def squash_unicode(obj):' | |||||
78 | # Change this when incrementing the kernel protocol version |
|
77 | # Change this when incrementing the kernel protocol version | |
79 | protocol_version = [1, 1] |
|
78 | protocol_version = [1, 1] | |
80 |
|
79 | |||
81 | _version_info_list = list(IPython.version_info) |
|
|||
82 | # ISO8601-ify datetime objects |
|
80 | # ISO8601-ify datetime objects | |
83 | json_packer = lambda obj: jsonapi.dumps(obj, default=date_default) |
|
81 | json_packer = lambda obj: jsonapi.dumps(obj, default=date_default) | |
84 | json_unpacker = lambda s: extract_dates(jsonapi.loads(s)) |
|
82 | json_unpacker = lambda s: extract_dates(jsonapi.loads(s)) | |
@@ -191,7 +189,6 b' class Message(object):' | |||||
191 |
|
189 | |||
192 | def msg_header(msg_id, msg_type, username, session): |
|
190 | def msg_header(msg_id, msg_type, username, session): | |
193 | date = datetime.now() |
|
191 | date = datetime.now() | |
194 | version = _version_info_list |
|
|||
195 | return locals() |
|
192 | return locals() | |
196 |
|
193 | |||
197 | def extract_header(msg_or_header): |
|
194 | def extract_header(msg_or_header): |
General Comments 0
You need to be logged in to leave comments.
Login now