(self)
| 1283 | self._sock_shutdown(socket.SHUT_RD) |
| 1284 | |
| 1285 | def close(self) -> None: |
| 1286 | self._sock_shutdown = None |
| 1287 | |
| 1288 | if not self.closed and self._fp: |
| 1289 | self._fp.close() |
| 1290 | |
| 1291 | if self._connection: |
| 1292 | self._connection.close() |
| 1293 | |
| 1294 | if not self.auto_close: |
| 1295 | io.IOBase.close(self) |
| 1296 | |
| 1297 | @property |
| 1298 | def closed(self) -> bool: |
no outgoing calls