We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent faf1dcf commit add177bCopy full SHA for add177b
src/python_inspector/package_data.py
@@ -93,6 +93,11 @@ def canonicalize_url(url: str):
93
# os.path.normpath will handle segments like '.' and '..'
94
canonical_path = os.path.normpath(parsed.path)
95
96
+ # On Windows, normpath uses backslashes ('\\').
97
+ # We must replace them with forward slashes ('/') for a valid URL path.
98
+ if os.path.sep == '\\':
99
+ canonical_path = canonical_path.replace('\\', '/')
100
+
101
# Rebuild the URL with the canonicalized path
102
# We replace the original path with the new one
103
parsed = parsed._replace(path=canonical_path)
0 commit comments