Show More
@@ -43,6 +43,7 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 | |||
46 | from IPython.config.application import Application, boolean_flag |
|
47 | from IPython.config.application import Application, boolean_flag | |
47 | from IPython.config.configurable import Configurable, LoggingConfigurable |
|
48 | from IPython.config.configurable import Configurable, LoggingConfigurable | |
48 | from IPython.utils.importstring import import_item |
|
49 | from IPython.utils.importstring import import_item | |
@@ -74,7 +75,7 b' def squash_unicode(obj):' | |||||
74 | # globals and defaults |
|
75 | # globals and defaults | |
75 | #----------------------------------------------------------------------------- |
|
76 | #----------------------------------------------------------------------------- | |
76 |
|
77 | |||
77 |
|
78 | _version_info_list = list(IPython.version_info) | ||
78 | # ISO8601-ify datetime objects |
|
79 | # ISO8601-ify datetime objects | |
79 | json_packer = lambda obj: jsonapi.dumps(obj, default=date_default) |
|
80 | json_packer = lambda obj: jsonapi.dumps(obj, default=date_default) | |
80 | json_unpacker = lambda s: extract_dates(jsonapi.loads(s)) |
|
81 | json_unpacker = lambda s: extract_dates(jsonapi.loads(s)) | |
@@ -187,6 +188,7 b' class Message(object):' | |||||
187 |
|
188 | |||
188 | def msg_header(msg_id, msg_type, username, session): |
|
189 | def msg_header(msg_id, msg_type, username, session): | |
189 | date = datetime.now() |
|
190 | date = datetime.now() | |
|
191 | version = _version_info_list | |||
190 | return locals() |
|
192 | return locals() | |
191 |
|
193 | |||
192 | 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