FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GH-125866: Deprecate `nturl2path` module by barneygale · Pull Request #131432 · python/cpython · GitHub

/ cpython Public

GH-125866: Deprecate nturl2path module - #131432

Merged
barneygale merged 8 commits into
python:mainfrom
barneygale:gh-125866-nturl2path-tests
Mar 19, 2025
Merged

GH-125866: Deprecate nturl2path module#131432
barneygale merged 8 commits into
python:mainfrom
barneygale:gh-125866-nturl2path-tests

Conversation

barneygale commented Mar 18, 2025
edited
Loading

Copy link
Copy Markdown
Contributor

Deprecate the nturl2path module. Its functionality is merged into urllib.request.

Add tests.test_nturl2path to exercise nturl2path, as it's no longer covered by test_urllib.

Add `tests.test_nturl2path` to exercise `nturl2path`.

`nturl2path` is currently used by `urllib` and tested by `test_urllib`, but
that will change when we deprecate `nturl2path` and add support for Windows
paths/URLs in `urllib` itself.
barneygale changed the title GH-125866: Add tests for nturl2path module GH-125866: Deprecate nturl2path module Mar 19, 2025
barneygale removed the tests Tests in the Lib/test dir label Mar 19, 2025
barneygale marked this pull request as ready for review March 19, 2025 00:43

serhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM.

Comment thread Lib/urllib/request.py Outdated

Copy link
Copy Markdown
Contributor

I split out the nturl2path tests 8 months ago. This PR does more and includes it. Maybe I'll close my PR after this merge?

#122372

Comment thread Lib/nturl2path.py Outdated

Copy link
Copy Markdown
Contributor Author

I split out the nturl2path tests 8 months ago. This PR does more and includes it. Maybe I'll close my PR after this merge?

#122372

Thanks for the info - sorry I didn't spot your PR before. It looks like we arrived at a similar place.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL