MCPcopy Index your code
hub / github.com/python/cpython / create_file

Function create_file

Lib/test/test_genericpath.py:19–21  ·  view source on GitHub ↗
(filename, data=b'foo')

Source from the content-addressed store, hash-verified

17
18
19def create_file(filename, data=b'foo'):
20 with open(filename, 'xb', 0) as fp:
21 fp.write(data)
22
23
24class GenericTest:

Callers 11

test_getsizeMethod · 0.70
test_filetimeMethod · 0.70
test_existsMethod · 0.70
test_isdirMethod · 0.70
test_isfileMethod · 0.70
test_samefileMethod · 0.70
test_samestatMethod · 0.70
test_sameopenfileMethod · 0.70
setUpMethod · 0.70

Calls 2

openFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…