Skip to content

Commit bd1563d

Browse files
authored
Merge pull request #11181 from sbidoul/fix-origin-json-encoding
Enforce utf-8 encoding for origin.json in wheel cache
2 parents ba11a20 + 667f8b3 commit bd1563d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pip/_internal/cache.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,4 +286,4 @@ def record_download_origin(cache_dir: str, download_info: DirectUrl) -> None:
286286
cache_dir,
287287
download_info.url,
288288
)
289-
origin_path.write_text(download_info.to_json())
289+
origin_path.write_text(download_info.to_json(), encoding="utf-8")

0 commit comments

Comments
 (0)