bpo-27485: Rename and deprecate undocumented functions in urllib.parse (GH-2205)

This commit is contained in:
Cheryl Sabella 2018-04-25 16:51:54 -07:00 committed by Łukasz Langa
parent 57faf34887
commit 0250de4819
6 changed files with 244 additions and 62 deletions

View file

@ -113,7 +113,7 @@ class MimeTypes:
Optional `strict' argument when False adds a bunch of commonly found,
but non-standard types.
"""
scheme, url = urllib.parse.splittype(url)
scheme, url = urllib.parse._splittype(url)
if scheme == 'data':
# syntax of data URLs:
# dataurl := "data:" [ mediatype ] [ ";base64" ] "," data