Skip to content

Commit

Permalink
ensure raw_input returns str in zmq shell
Browse files Browse the repository at this point in the history
matches raw_input.  Some things can't handle unicode objects (e.g. `help()`).

closes ipython#1145
  • Loading branch information
minrk committed Jul 4, 2013
1 parent 8be0653 commit eed0c91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IPython/kernel/zmq/ipkernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ def _raw_input(self, prompt, ident, parent):
else:
break
try:
value = reply['content']['value']
value = py3compat.unicode_to_str(reply['content']['value'])
except:
self.log.error("Got bad raw_input reply: ")
self.log.error("%s", parent)
Expand Down

0 comments on commit eed0c91

Please sign in to comment.