(self)
| 565 | ) |
| 566 | |
| 567 | def _do_get(self) -> ConnectionPoolEntry: |
| 568 | if self._checked_out: |
| 569 | if self._checkout_traceback: |
| 570 | suffix = " at:\n%s" % "".join( |
| 571 | chop_traceback(self._checkout_traceback) |
| 572 | ) |
| 573 | else: |
| 574 | suffix = "" |
| 575 | raise AssertionError("connection is already checked out" + suffix) |
| 576 | |
| 577 | if not self._conn: |
| 578 | self._conn = self._create_connection() |
| 579 | |
| 580 | self._checked_out = True |
| 581 | if self._store_traceback: |
| 582 | self._checkout_traceback = traceback.format_stack() |
| 583 | return self._conn |
nothing calls this directly
no test coverage detected