summaryrefslogtreecommitdiffstats
path: root/Lib/mimetypes.py
diff options
context:
space:
mode:
authorCheryl Sabella <cheryl.sabella@gmail.com>2018-04-25 23:51:54 (GMT)
committerƁukasz Langa <lukasz@langa.pl>2018-04-25 23:51:54 (GMT)
commit0250de48199552cdaed5a4fe44b3f9cdb5325363 (patch)
tree1b990f6f694f6d61793484c84a16134f2d6f4216 /Lib/mimetypes.py
parent57faf348872d1d0af1808c82f535cf220d64b028 (diff)
downloadcpython-0250de48199552cdaed5a4fe44b3f9cdb5325363.zip
cpython-0250de48199552cdaed5a4fe44b3f9cdb5325363.tar.gz
cpython-0250de48199552cdaed5a4fe44b3f9cdb5325363.tar.bz2
bpo-27485: Rename and deprecate undocumented functions in urllib.parse (GH-2205)
Diffstat (limited to 'Lib/mimetypes.py')
-rw-r--r--Lib/mimetypes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py
index c86dd6d..f258721 100644
--- a/Lib/mimetypes.py
+++ b/Lib/mimetypes.py
@@ -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