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