Skip to content

Update urrlib.request.urlopen monkeypatching

Leo P. Singer requested to merge leo-singer/userguide:url-patching into master

The function urllib.request.urlopen() can accept either a URL string or a urllib.request.Request instance. It seems that astropy.utils.data sometimes uses the latter, so our monkeypatch code needs to be able to handle that case.

Merge request reports