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

Method __init__

tools/python-3.11.9-amd64/Lib/wave.py:422–432  ·  view source on GitHub ↗
(self, f)

Source from the content-addressed store, hash-verified

420 """
421
422 def __init__(self, f):
423 self._i_opened_the_file = None
424 if isinstance(f, str):
425 f = builtins.open(f, 'wb')
426 self._i_opened_the_file = f
427 try:
428 self.initfp(f)
429 except:
430 if self._i_opened_the_file:
431 f.close()
432 raise
433
434 def initfp(self, file):
435 self._file = file

Callers

nothing calls this directly

Calls 3

initfpMethod · 0.95
openMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected