From eed0c91e39e861034b622e86a369f94e00786b76 2013-07-04 01:07:00 From: MinRK Date: 2013-07-04 01:07:00 Subject: [PATCH] ensure raw_input returns str in zmq shell matches raw_input. Some things can't handle unicode objects (e.g. `help()`). closes #1145 --- diff --git a/IPython/kernel/zmq/ipkernel.py b/IPython/kernel/zmq/ipkernel.py index c33b807..5bcd6b6 100755 --- a/IPython/kernel/zmq/ipkernel.py +++ b/IPython/kernel/zmq/ipkernel.py @@ -770,7 +770,7 @@ class Kernel(Configurable): 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)