(self, pid: int)
| 535 | |
| 536 | @contextlib.contextmanager |
| 537 | def exempt(self, pid: int): |
| 538 | if self.local: |
| 539 | self.local.trusted_pids.add(pid) |
| 540 | try: |
| 541 | yield |
| 542 | finally: |
| 543 | if self.local: |
| 544 | self.local.trusted_pids.remove(pid) |
| 545 | |
| 546 | |
| 547 | if __name__ == "__main__": |