Run the 'checkOut' operation.
(self, op)
| 123 | ) |
| 124 | |
| 125 | def check_out(self, op): |
| 126 | """Run the 'checkOut' operation.""" |
| 127 | label = op["label"] |
| 128 | with self.pool.checkout() as conn: |
| 129 | # Call 'pin_cursor' so we can hold the socket. |
| 130 | conn.pin_cursor() |
| 131 | if label: |
| 132 | self.labels[label] = conn |
| 133 | else: |
| 134 | self.addCleanup(conn.close_conn, None) |
| 135 | |
| 136 | def check_in(self, op): |
| 137 | """Run the 'checkIn' operation.""" |
nothing calls this directly
no test coverage detected