MCPcopy Index your code
hub / github.com/csev/py4e / curl1.py

File curl1.py

code3/curl1.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import urllib.request, urllib.parse, urllib.error
2
3img = urllib.request.urlopen('http://data.pr4e.org/cover3.jpg').read()
4fhand = open('cover3.jpg', 'wb')

Callers

nothing calls this directly

Calls 2

readMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected