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

Method file_close

Lib/urllib/request.py:1862–1866  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1860 self.real_close()
1861
1862 def file_close(self):
1863 self.endtransfer()
1864 self.refcount -= 1
1865 if self.refcount <= 0 and not self.keepalive:
1866 self.real_close()
1867
1868 def real_close(self):
1869 self.endtransfer()

Callers

nothing calls this directly

Calls 2

endtransferMethod · 0.95
real_closeMethod · 0.95

Tested by

no test coverage detected