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

Function fileContents

Mac/BuildScript/build-installer.py:514–518  ·  view source on GitHub ↗

Return the contents of the named file

(fn)

Source from the content-addressed store, hash-verified

512 sys.exit(1)
513
514def fileContents(fn):
515 """
516 Return the contents of the named file
517 """
518 return open(fn, 'r').read()
519
520def runCommand(commandline):
521 """

Callers 2

patchFileFunction · 0.85
patchScriptFunction · 0.85

Calls 2

openFunction · 0.50
readMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…