Show More
@@ -47,7 +47,7 b' from zmq.eventloop.zmqstream import ZMQStream' | |||||
47 | from IPython.config.configurable import Configurable, LoggingConfigurable |
|
47 | from IPython.config.configurable import Configurable, LoggingConfigurable | |
48 | from IPython.utils.importstring import import_item |
|
48 | from IPython.utils.importstring import import_item | |
49 | from IPython.utils.jsonutil import extract_dates, squash_dates, date_default |
|
49 | from IPython.utils.jsonutil import extract_dates, squash_dates, date_default | |
50 | from IPython.utils.traitlets import (Bytes, Unicode, Bool, Any, Instance, Set, |
|
50 | from IPython.utils.traitlets import (CBytes, Unicode, Bool, Any, Instance, Set, | |
51 | DottedObjectName) |
|
51 | DottedObjectName) | |
52 |
|
52 | |||
53 | #----------------------------------------------------------------------------- |
|
53 | #----------------------------------------------------------------------------- | |
@@ -239,7 +239,7 b' class Session(Configurable):' | |||||
239 | else: |
|
239 | else: | |
240 | self.unpack = import_item(str(new)) |
|
240 | self.unpack = import_item(str(new)) | |
241 |
|
241 | |||
242 | session = Bytes(b'', config=True, |
|
242 | session = CBytes(b'', config=True, | |
243 | help="""The UUID identifying this session.""") |
|
243 | help="""The UUID identifying this session.""") | |
244 | def _session_default(self): |
|
244 | def _session_default(self): | |
245 | return bytes(uuid.uuid4()) |
|
245 | return bytes(uuid.uuid4()) | |
@@ -248,7 +248,7 b' class Session(Configurable):' | |||||
248 | help="""Username for the Session. Default is your system username.""") |
|
248 | help="""Username for the Session. Default is your system username.""") | |
249 |
|
249 | |||
250 | # message signature related traits: |
|
250 | # message signature related traits: | |
251 | key = Bytes(b'', config=True, |
|
251 | key = CBytes(b'', config=True, | |
252 | help="""execution key, for extra authentication.""") |
|
252 | help="""execution key, for extra authentication.""") | |
253 | def _key_changed(self, name, old, new): |
|
253 | def _key_changed(self, name, old, new): | |
254 | if new: |
|
254 | if new: |
General Comments 0
You need to be logged in to leave comments.
Login now