This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: urllib.parse: remove deprecated functions (splittype, to_bytes, etc.)
Type: Stage: resolved
Components: Library (Lib) Versions: Python 3.11
Status: closed Resolution: postponed
Dependencies: Superseder:
Assigned To: Nosy List: vstinner
Priority: normal Keywords: patch

Created on 2021-09-01 21:58 by vstinner, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 28115 closed vstinner, 2021-09-01 22:06
Messages (2)
msg400874 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2021-09-01 21:58
bpo-27485 deprecated the following urllib.parse undocumented functions in Python 3.8:

* splitattr()
* splithost()
* splitnport()
* splitpasswd()
* splitport()
* splitquery()
* splittag()
* splittype()
* splituser()
* splitvalue()
* to_bytes()

(commit 0250de48199552cdaed5a4fe44b3f9cdb5325363)

I propose to remove them. See attached PR.

Note: The Quoter class is only deprecated since Python 3.11. It should be kept around for 2 releases (not removed before Python 3.13): PEP 387.
msg403974 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2021-10-15 06:45
pip uses deprecated functions indirectly:

Python 3.11 seems to be too early to *remove* functions. We can attempt again in the next Python release ;-)
Date User Action Args
2022-04-11 14:59:49adminsetgithub: 89247
2021-10-15 06:45:18vstinnersetstatus: open -> closed
resolution: postponed
messages: + msg403974

stage: patch review -> resolved
2021-09-01 22:06:55vstinnersetkeywords: + patch
stage: patch review
pull_requests: + pull_request26556
2021-09-01 21:58:56vstinnercreate