MCPcopy Create free account
hub / github.com/scanny/python-pptx / close

Method close

src/pptx/text/fonts.py:202–207  ·  view source on GitHub ↗

Close the wrapped file. Using the stream after closing raises an exception.

(self)

Source from the content-addressed store, hash-verified

200 return cls(open(path, "rb"))
201
202 def close(self):
203 """
204 Close the wrapped file. Using the stream after closing raises an
205 exception.
206 """
207 self._file.close()
208
209 def read(self, offset, length):
210 """

Callers 8

_open_worksheetMethod · 0.80
_pil_propsMethod · 0.80
__exit__Method · 0.80
__exit__Method · 0.80
it_can_be_closedMethod · 0.80
loadMethod · 0.80
scratch.pyFile · 0.80

Calls

no outgoing calls

Tested by 1

it_can_be_closedMethod · 0.64