Set the hook.
(self)
| 59 | return False |
| 60 | |
| 61 | def set(self): |
| 62 | """Set the hook.""" |
| 63 | if sys.displayhook is not self.hook: |
| 64 | self.old_hook = sys.displayhook |
| 65 | sys.displayhook = self.hook |
| 66 | |
| 67 | def unset(self): |
| 68 | """Unset the hook.""" |
no outgoing calls