Set the hook.
(self)
| 63 | return self._nested_level != 0 |
| 64 | |
| 65 | def set(self): |
| 66 | """Set the hook.""" |
| 67 | if sys.displayhook is not self.hook: |
| 68 | self.old_hook = sys.displayhook |
| 69 | sys.displayhook = self.hook |
| 70 | |
| 71 | def unset(self): |
| 72 | """Unset the hook.""" |
no outgoing calls
no test coverage detected