(self, exc_type, exc_val, exc_tb)
| 661 | return self |
| 662 | |
| 663 | def __exit__(self, exc_type, exc_val, exc_tb): |
| 664 | try: |
| 665 | if exc_type is not None: |
| 666 | self.shutdown_time = time.monotonic() + 30 |
| 667 | finally: |
| 668 | # in any case, we want to close the repo cleanly. |
| 669 | logger.debug( |
| 670 | "RemoteRepository: %s bytes sent, %s bytes received, %d messages sent", |
| 671 | format_file_size(self.tx_bytes), |
| 672 | format_file_size(self.rx_bytes), |
| 673 | self.msgid, |
| 674 | ) |
| 675 | self.close() |
| 676 | |
| 677 | @property |
| 678 | def id_str(self): |
no test coverage detected