MCPcopy Index your code
hub / github.com/python/cpython / _close

Method _close

Lib/gzip.py:397–402  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

395 self._close()
396
397 def _close(self):
398 self.fileobj = None
399 myfileobj = self.myfileobj
400 if myfileobj is not None:
401 self.myfileobj = None
402 myfileobj.close()
403
404 def flush(self,zlib_mode=zlib.Z_SYNC_FLUSH):
405 self._check_not_closed()

Callers 2

__init__Method · 0.95
closeMethod · 0.95

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected