Show More
@@ -2,7 +2,7 b'' | |||||
2 | """ |
|
2 | """ | |
3 | Classes for handling input/output prompts. |
|
3 | Classes for handling input/output prompts. | |
4 |
|
4 | |||
5 |
$Id: Prompts.py 302 |
|
5 | $Id: Prompts.py 3026 2008-02-07 16:03:16Z vivainio $""" | |
6 |
|
6 | |||
7 | #***************************************************************************** |
|
7 | #***************************************************************************** | |
8 | # Copyright (C) 2001-2006 Fernando Perez <fperez@colorado.edu> |
|
8 | # Copyright (C) 2001-2006 Fernando Perez <fperez@colorado.edu> | |
@@ -535,8 +535,12 b' class CachedOutput:' | |||||
535 | # first handle the cache and counters |
|
535 | # first handle the cache and counters | |
536 |
|
536 | |||
537 | # do not print output if input ends in ';' |
|
537 | # do not print output if input ends in ';' | |
538 | if self.prompt_count and self.input_hist[self.prompt_count].endswith(';\n'): |
|
538 | try: | |
539 | return |
|
539 | if self.input_hist[self.prompt_count].endswith(';\n'): | |
|
540 | return | |||
|
541 | except IndexError: | |||
|
542 | # some uses of ipshellembed may fail here | |||
|
543 | pass | |||
540 | # don't use print, puts an extra space |
|
544 | # don't use print, puts an extra space | |
541 | cout_write(self.output_sep) |
|
545 | cout_write(self.output_sep) | |
542 | outprompt = self.shell.hooks.generate_output_prompt() |
|
546 | outprompt = self.shell.hooks.generate_output_prompt() |
General Comments 0
You need to be logged in to leave comments.
Login now