Should we silence the display hook because of ';'?
(self)
| 85 | pass |
| 86 | |
| 87 | def quiet(self): |
| 88 | """Should we silence the display hook because of ';'?""" |
| 89 | # do not print output if input ends in ';' |
| 90 | |
| 91 | try: |
| 92 | cell = self.shell.history_manager.input_hist_parsed[-1] |
| 93 | except IndexError: |
| 94 | # some uses of ipshellembed may fail here |
| 95 | return False |
| 96 | |
| 97 | return self.semicolon_at_end_of_expression(cell) |
| 98 | |
| 99 | @staticmethod |
| 100 | def semicolon_at_end_of_expression(expression): |
no test coverage detected