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

Method open

tools/python-3.11.9-amd64/Lib/distutils/text_file.py:111–116  ·  view source on GitHub ↗

Open a new file named 'filename'. This overrides both the 'filename' and 'file' arguments to the constructor.

(self, filename)

Source from the content-addressed store, hash-verified

109 self.linebuf = []
110
111 def open(self, filename):
112 """Open a new file named 'filename'. This overrides both the
113 'filename' and 'file' arguments to the constructor."""
114 self.filename = filename
115 self.file = io.open(self.filename, 'r', errors=self.errors)
116 self.current_line = 0
117
118 def close(self):
119 """Close the current file and forget everything we know about it

Callers 12

__init__Method · 0.95
openFunction · 0.45
whichdbFunction · 0.45
_createMethod · 0.45
_updateMethod · 0.45
_commitMethod · 0.45
__getitem__Method · 0.45
_addvalMethod · 0.45
_setvalMethod · 0.45
_addkeyMethod · 0.45
_store_pypircMethod · 0.45
make_tarballFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected