Change to support patching OpenerDirector objects in urllib#20
Change to support patching OpenerDirector objects in urllib#20koenvo merged 1 commit intokoenvo:mainfrom
Conversation
This change patches over the open method for any created urllib OpenerDirector objects with the urlopen method here. OpenerDirectors are used in astropy [here](https://github.com/astropy/astropy/blob/main/astropy/utils/data.py#L1211).
|
Thanks for this PR. As far as I can see this doesn't help astropy as it still tries to import |
|
Ah, I understand why my code works now. The reason I patched OpenerDirector was to use pyscript to run the pyvo package - an Here is my test code: I should say, it says |
This change patches over the open method for any created urllib OpenerDirector objects with the urlopen method here. OpenerDirectors are used in astropy here.