equal
deleted
inserted
replaced
333 self.cnx.anonymous_connection = True |
333 self.cnx.anonymous_connection = True |
334 return self.cnx |
334 return self.cnx |
335 |
335 |
336 def restore_connection(self): |
336 def restore_connection(self): |
337 if not self.cnx is self._orig_cnx[0]: |
337 if not self.cnx is self._orig_cnx[0]: |
338 if not cnx._closed: |
338 if not self.cnx._closed: |
339 self.cnx.close() |
339 self.cnx.close() |
340 try: |
340 try: |
341 self._cnxs.remove(self.cnx) |
341 self._cnxs.remove(self.cnx) |
342 except ValueError: |
342 except ValueError: |
343 pass |
343 pass |