equal
deleted
inserted
replaced
172 self._cnx.__exit__(exc_type, exc_val, exc_tb) |
172 self._cnx.__exit__(exc_type, exc_val, exc_tb) |
173 self._cnx = None |
173 self._cnx = None |
174 if self._autoclose_session: |
174 if self._autoclose_session: |
175 # we have to call repo.close to ensure the repo properly forgets the |
175 # we have to call repo.close to ensure the repo properly forgets the |
176 # session; calling session.close() is not enough :-( |
176 # session; calling session.close() is not enough :-( |
177 self._session.repo.close(self._session.id) |
177 self._session.repo.close(self._session.sessionid) |
178 |
178 |
179 |
179 |
180 # begin silly BC |
180 # begin silly BC |
181 @property |
181 @property |
182 def _closed(self): |
182 def _closed(self): |
349 return self |
349 return self |
350 |
350 |
351 @ property |
351 @ property |
352 @deprecated('[3.19] This is a repoapi.ClientConnection object not a dbapi one') |
352 @deprecated('[3.19] This is a repoapi.ClientConnection object not a dbapi one') |
353 def sessionid(self): |
353 def sessionid(self): |
354 return self._session.id |
354 return self._session.sessionid |
355 |
355 |
356 @property |
356 @property |
357 @deprecated('[3.19] This is a repoapi.ClientConnection object not a dbapi one') |
357 @deprecated('[3.19] This is a repoapi.ClientConnection object not a dbapi one') |
358 def connection(self): |
358 def connection(self): |
359 return self |
359 return self |