From 389760e3bc648441e50d5c692eaebb9a8cb7981d 2014-03-11 21:55:00 From: Thomas Kluyver Date: 2014-03-11 21:55:00 Subject: [PATCH] Fix Python 3 bug in demo module --- diff --git a/IPython/lib/demo.py b/IPython/lib/demo.py index 7834cae..435670d 100644 --- a/IPython/lib/demo.py +++ b/IPython/lib/demo.py @@ -304,7 +304,7 @@ class Demo(object): self.src_blocks = src_blocks # also build syntax-highlighted source - self.src_blocks_colored = map(self.ip_colorize,self.src_blocks) + self.src_blocks_colored = list(map(self.ip_colorize,self.src_blocks)) # ensure clean namespace and seek offset self.reset()