MCPcopy Create free account
hub / github.com/numpy/numpy / process_file

Function process_file

numpy/distutils/conv_template.py:281–288  ·  view source on GitHub ↗
(source)

Source from the content-addressed store, hash-verified

279 return lines
280
281def process_file(source):
282 lines = resolve_includes(source)
283 sourcefile = os.path.normcase(source).replace("\\", "\\\\")
284 try:
285 code = process_str(''.join(lines))
286 except ValueError as e:
287 raise ValueError('In "%s" loop at %s' % (sourcefile, e)) from None
288 return '#line 1 "%s"\n%s' % (sourcefile, code)
289
290
291def unique_key(adict):

Callers

nothing calls this directly

Calls 4

replaceMethod · 0.80
resolve_includesFunction · 0.70
process_strFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected