##// END OF EJS Templates
Fix %magic, %prun and %pycat magics.
Fernando Perez -
Show More
@@ -513,9 +513,7 b' Currently the magic system has the following functions:\\n"""'
513 513 magic_docs,mesc,mesc,
514 514 (' '+mesc).join(self.lsmagic()),
515 515 Magic.auto_status[self.shell.automagic] ) )
516
517 page.page(outmsg,screen_lines=self.shell.usable_screen_length)
518
516 page.page(outmsg)
519 517
520 518 def magic_autoindent(self, parameter_s = ''):
521 519 """Toggle autoindent on/off (if available)."""
@@ -523,7 +521,6 b' Currently the magic system has the following functions:\\n"""'
523 521 self.shell.set_autoindent()
524 522 print "Automatic indentation is:",['OFF','ON'][self.shell.autoindent]
525 523
526
527 524 def magic_automagic(self, parameter_s = ''):
528 525 """Make magic functions callable without having to type the initial %.
529 526
@@ -1520,7 +1517,7 b' Currently the magic system has the following functions:\\n"""'
1520 1517 output = stdout_trap.getvalue()
1521 1518 output = output.rstrip()
1522 1519
1523 page.page(output,screen_lines=self.shell.usable_screen_length)
1520 page.page(output)
1524 1521 print sys_exit,
1525 1522
1526 1523 dump_file = opts.D[0]
@@ -3255,9 +3252,8 b' Defaulting color scheme to \'NoColor\'"""'
3255 3252 if cont is None:
3256 3253 print "Error: no such file or variable"
3257 3254 return
3258
3259 page.page(self.shell.pycolorize(cont),
3260 screen_lines=self.shell.usable_screen_length)
3255
3256 page.page(self.shell.pycolorize(cont))
3261 3257
3262 3258 def _rerun_pasted(self):
3263 3259 """ Rerun a previously pasted command.
General Comments 0
You need to be logged in to leave comments. Login now