Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

url2pathname() mishandles URL with Windows drive in netloc #137059

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

Description

@barneygale

Bug report

Bug description:

Windows-specific regression in Python 3.14 caused byd783d7b

Some programs generate file URLs by adding afile:// prefix to a path. On Windows, this can result in URLs likefile://C:/foo. Though these URLs are malformed, they were correctly handled byurllib.request.url2pathname() until 3.14.

>>>fromurllib.requestimporturl2pathname>>>url2pathname('//C:/foo')'\\\\C:\\foo'# expected 'C:\\foo'

CPython versions tested on:

3.14

Operating systems tested on:

No response

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp