From 056abb72a5a045fc7714a89e73d577ededd27015 2012-08-27 06:03:31 From: Jörgen Stenarson Date: 2012-08-27 06:03:31 Subject: [PATCH] Convert source code to unicode in zmqshell magic_less --- diff --git a/IPython/zmq/zmqshell.py b/IPython/zmq/zmqshell.py index 20b037a..d707ed0 100644 --- a/IPython/zmq/zmqshell.py +++ b/IPython/zmq/zmqshell.py @@ -355,7 +355,7 @@ class KernelMagics(Magics): cont = open(arg_s).read() if arg_s.endswith('.py'): - cont = self.shell.pycolorize(cont) + cont = self.shell.pycolorize(io.source_to_unicode(cont)) page.page(cont) more = line_magic('more')(less)