MCPcopy Index your code
hub / github.com/RustPython/RustPython / open_file

Function open_file

Lib/test/test_modulefinder.py:290–297  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

288""".encode('utf-8')]
289
290def open_file(path):
291 dirname = os.path.dirname(path)
292 try:
293 os.makedirs(dirname)
294 except OSError as e:
295 if e.errno != errno.EEXIST:
296 raise
297 return open(path, 'wb')
298
299
300def create_package(test_dir, source):

Callers 2

create_packageFunction · 0.85
test_bytecodeMethod · 0.85

Calls 1

openFunction · 0.50

Tested by

no test coverage detected