Url starting with file:\\ no longer works in urllib since 3.14
Đang mở
@serhiy-storchaka đang làm issue này rồi.
Từ ngày 25/8/2026.
stdlib
type-bug
- Ngôn ngữ chính
- Python
- Star
- 77.2k
- Fork
- 35.9k
- Chỉ số merge pull request
- Chỉ số pull request đang chờ
Mô tả
Bug report
Bug description:
from urllib.request import urlopen
with urlopen("file:\\C:/temp/test.txt") as response:
print(response.read())
That works in python 313 but fails in 314
Just checking if it's intended change? This resulted failure when upgrading 313->314
Same url works in webbrowser, Firefox, Edge, in Windows 11
CPython versions tested on:
3.14
Operating systems tested on:
Windows
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Đánh giá
Issue này chưa được đánh giá.