##// END OF EJS Templates
fix borken demo.py
Moez Bouhlel -
Show More
@@ -183,7 +183,6 b' import re'
183 import shlex
183 import shlex
184 import sys
184 import sys
185
185
186 from IPython.utils import io
187 from IPython.utils.text import marquee
186 from IPython.utils.text import marquee
188 from IPython.utils import openpy
187 from IPython.utils import openpy
189 from IPython.utils import py3compat
188 from IPython.utils import py3compat
@@ -538,7 +537,7 b' class LineDemo(Demo):'
538 self.src_blocks = src_b
537 self.src_blocks = src_b
539
538
540 # also build syntax-highlighted source
539 # also build syntax-highlighted source
541 self.src_blocks_colored = map(self.ip_colorize,self.src_blocks)
540 self.src_blocks_colored = list(map(self.ip_colorize,self.src_blocks))
542
541
543 # ensure clean namespace and seek offset
542 # ensure clean namespace and seek offset
544 self.reset()
543 self.reset()
@@ -572,8 +571,8 b' class ClearMixin(object):'
572 """Method called before executing each block.
571 """Method called before executing each block.
573
572
574 This one simply clears the screen."""
573 This one simply clears the screen."""
575 from IPython.utils.terminal import term_clear
574 from IPython.utils.terminal import _term_clear
576 term_clear()
575 _term_clear()
577
576
578 class ClearDemo(ClearMixin,Demo):
577 class ClearDemo(ClearMixin,Demo):
579 pass
578 pass
General Comments 0
You need to be logged in to leave comments. Login now