# Bug report ### Bug description: Originally I found this bug when using "livecd-creator" (Fedora 41 version). It can be reproduce whith this minimal code. ``` from urllib import request url = b"test" pathname = request.pathname2url(url) ``` ### CPython versions tested on: 3.13 ### Operating systems tested on: Linux <!-- gh-linked-prs --> ### Linked PRs * gh-129910 <!-- /gh-linked-prs -->