Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
2186
class
PyZipFile(ZipFile):
Callers
2
__init__
Method · 0.95
close
Method · 0.95
Calls
1
close
Method · 0.45
Tested by
no test coverage detected