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

Method __init__

tools/python-3.11.9-amd64/Lib/sunau.py:314–321  ·  view source on GitHub ↗
(self, f)

Source from the content-addressed store, hash-verified

312class Au_write:
313
314 def __init__(self, f):
315 if type(f) == type(''):
316 import builtins
317 f = builtins.open(f, 'wb')
318 self._opened = True
319 else:
320 self._opened = False
321 self.initfp(f)
322
323 def __del__(self):
324 if self._file:

Callers

nothing calls this directly

Calls 3

initfpMethod · 0.95
typeClass · 0.50
openMethod · 0.45

Tested by

no test coverage detected