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

Function main

numpy/distutils/from_template.py:243–257  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

241''')
242
243def main():
244 try:
245 file = sys.argv[1]
246 except IndexError:
247 fid = sys.stdin
248 outfile = sys.stdout
249 else:
250 fid = open(file, 'r')
251 (base, ext) = os.path.splitext(file)
252 newname = base
253 outfile = open(newname, 'w')
254
255 allstr = fid.read()
256 writestr = process_str(allstr)
257 outfile.write(writestr)
258
259
260if __name__ == "__main__":

Callers 1

from_template.pyFile · 0.70

Calls 4

openFunction · 0.85
process_strFunction · 0.70
readMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected