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

Method __init__

tools/python-3.11.9-amd64/Lib/aifc.py:354–364  ·  view source on GitHub ↗
(self, f)

Source from the content-addressed store, hash-verified

352 raise Error('COMM chunk and/or SSND chunk missing')
353
354 def __init__(self, f):
355 if isinstance(f, str):
356 file_object = builtins.open(f, 'rb')
357 try:
358 self.initfp(file_object)
359 except:
360 file_object.close()
361 raise
362 else:
363 # assume it is an open file object already
364 self.initfp(f)
365
366 def __enter__(self):
367 return self

Callers

nothing calls this directly

Calls 3

initfpMethod · 0.95
openMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected