Closes the Win32 handle.
(self)
| 680 | return HANDLE(value) |
| 681 | |
| 682 | def close(self): |
| 683 | """ |
| 684 | Closes the Win32 handle. |
| 685 | """ |
| 686 | if self.bOwnership and self.value not in (None, INVALID_HANDLE_VALUE): |
| 687 | if Handle.__bLeakDetection: # XXX DEBUG |
| 688 | print("CLOSE HANDLE (%d) %r" % (self.value, self)) |
| 689 | try: |
| 690 | self._close() |
| 691 | finally: |
| 692 | self._value = None |
| 693 | |
| 694 | def _close(self): |
| 695 | """ |
no test coverage detected