##// END OF EJS Templates
Fixing typos in session.py.
Brian Granger -
Show More
@@ -115,10 +115,10 b' class Session(object):'
115 115 msg : dict
116 116 The message, as constructed by self.msg(msg_type,content,parent)
117 117 """
118 if isinstance(msg_type, (Message, dict)):
119 msg = dict(msg_type)
118 if isinstance(msg_or_type, (Message, dict)):
119 msg = dict(msg_or_type)
120 120 else:
121 msg = self.msg(msg_type, content, parent)
121 msg = self.msg(msg_or_type, content, parent)
122 122 if ident is not None:
123 123 socket.send(ident, zmq.SNDMORE)
124 124 socket.send_json(msg)
General Comments 0
You need to be logged in to leave comments. Login now