Permalink
Browse files

Fixing typos in session.py.

  • Loading branch information...
ellisonbg committed Jan 24, 2011
1 parent 7ac6be0 commit 21940ff96ec60b3a01bd4ee08c97d0b74a95204e
Showing with 3 additions and 3 deletions.
  1. +3 −3 IPython/zmq/session.py
View
@@ -115,10 +115,10 @@ def send(self, socket, msg_or_type, content=None, parent=None, ident=None):
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)

0 comments on commit 21940ff

Please sign in to comment.