Skip to content

Fix internal use of urlparse(x).path to strip file url schemes

This PR modifies two internal uses of urlparse(x).path to instead use the gwpy.io.utils.file_path function. Just stripping the scheme out (which is what urlparse(x).path does) sometimes causes problems on Windows when it gets passes a string with a drive name in it (e.g. C:\Users\me\myfile.txt). This should have no impact on anybody (except future me).

Merge request reports