MCPcopy Index your code
hub / github.com/PyMySQL/PyMySQL / close

Method close

pymysql/cursors.py:412–424  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

410 return row
411
412 def close(self):
413 conn = self.connection
414 if conn is None:
415 return
416
417 if self._result is not None and self._result is conn._result:
418 self._result._finish_unbuffered_query()
419
420 try:
421 while self.nextset():
422 pass
423 finally:
424 self.connection = None
425
426 __del__ = close
427

Callers

nothing calls this directly

Calls 2

nextsetMethod · 0.95

Tested by

no test coverage detected