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

Method _fpclose

Lib/zipfile/__init__.py:2179–2183  ·  view source on GitHub ↗
(self, fp)

Source from the content-addressed store, hash-verified

2177 self.fp.flush()
2178
2179 def _fpclose(self, fp):
2180 assert self._fileRefCnt > 0
2181 self._fileRefCnt -= 1
2182 if not self._fileRefCnt and not self._filePassed:
2183 fp.close()
2184
2185
2186class PyZipFile(ZipFile):

Callers 2

__init__Method · 0.95
closeMethod · 0.95

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected