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

Function urlretrieve

PCbuild/urlretrieve.py:24–30  ·  view source on GitHub ↗
(url, filename)

Source from the content-addressed store, hash-verified

22 USING = "requests.get"
23
24 def urlretrieve(url, filename):
25 r = get(url, stream=True)
26 r.raise_for_status()
27 with open(filename, 'wb') as f:
28 for chunk in r.iter_content(chunk_size=1024):
29 f.write(chunk)
30 return filename
31
32if __name__ == '__main__':
33 if len(sys.argv) != 3:

Callers

nothing calls this directly

Calls 3

getFunction · 0.50
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…