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

Method __init__

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

Source from the content-addressed store, hash-verified

160class Au_read:
161
162 def __init__(self, f):
163 if type(f) == type(''):
164 import builtins
165 f = builtins.open(f, 'rb')
166 self._opened = True
167 else:
168 self._opened = False
169 self.initfp(f)
170
171 def __del__(self):
172 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