(self)
| 677 | raise |
| 678 | |
| 679 | def close(self): |
| 680 | self.connected = False |
| 681 | self.accepting = False |
| 682 | self.connecting = False |
| 683 | self.del_channel() |
| 684 | try: |
| 685 | self.socket.close() |
| 686 | except socket.error as why: |
| 687 | if why.args[0] not in (ENOTCONN, EBADF): |
| 688 | raise |
| 689 | |
| 690 | # cheap inheritance, used to pass all other attribute |
| 691 | # references to the underlying socket object. |
no test coverage detected