Skip to content

urllib : systematic exception in "quote" if called by "pathname2url" and "pathname" is a bytes object #129683

@LaFronde1963

Description

@LaFronde1963

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

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions