From 21940ff96ec60b3a01bd4ee08c97d0b74a95204e 2011-01-24 05:41:51 From: Brian Granger Date: 2011-01-24 05:41:51 Subject: [PATCH] Fixing typos in session.py. --- diff --git a/IPython/zmq/session.py b/IPython/zmq/session.py index 3ead4e4..0fcb194 100644 --- a/IPython/zmq/session.py +++ b/IPython/zmq/session.py @@ -115,10 +115,10 @@ class Session(object): msg : dict The message, as constructed by self.msg(msg_type,content,parent) """ - if isinstance(msg_type, (Message, dict)): - msg = dict(msg_type) + if isinstance(msg_or_type, (Message, dict)): + msg = dict(msg_or_type) else: - msg = self.msg(msg_type, content, parent) + msg = self.msg(msg_or_type, content, parent) if ident is not None: socket.send(ident, zmq.SNDMORE) socket.send_json(msg)