MCPcopy Index your code
hub / github.com/RustPython/RustPython / _close

Method _close

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

Source from the content-addressed store, hash-verified

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

Callers 2

__init__Method · 0.95
closeMethod · 0.95

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected