Skip to content

url variable in urllib._urlsplit should be path #126376

@KentaroJay

Description

@KentaroJay

Hello Python team! I hope you're doing well.

Please take a look at the code here:

return (scheme, netloc, url, query, fragment)

The function _urlsplit is to return a tuple containing scheme, netloc, path, query, and fragment. However variable that corresponds to path is named url.

I think this is some kind of typo, I am eager to refactor this if that's the case.

Likewise, there are several lines with the same naming. I'll fix them too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directory

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions