MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _fpclose

Method _fpclose

tools/python-3.11.9-amd64/Lib/zipfile.py:2012–2016  ·  view source on GitHub ↗
(self, fp)

Source from the content-addressed store, hash-verified

2010 self.fp.flush()
2011
2012 def _fpclose(self, fp):
2013 assert self._fileRefCnt > 0
2014 self._fileRefCnt -= 1
2015 if not self._fileRefCnt and not self._filePassed:
2016 fp.close()
2017
2018
2019class PyZipFile(ZipFile):

Callers 2

__init__Method · 0.95
closeMethod · 0.95

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected