diff options
author | Abhilash Raj <maxking@users.noreply.github.com> | 2019-10-11 22:41:35 -0700 |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-10-11 22:41:35 -0700 |
commit | 19a3d873005e5730eeabdc394c961e93f2ec02f0 (patch) | |
tree | 888187697cbe6cd398211a1ba309a313a934ffbe /Lib/mimetypes.py | |
parent | 2b7dc40b2af6578181808ba73c1533fc114e55df (diff) | |
download | cpython-git-19a3d873005e5730eeabdc394c961e93f2ec02f0.tar.gz |
bpo-38449: Revert "bpo-22347: Update mimetypes.guess_type to allow oper parsing of URLs (GH-15522)" (GH-16724)
This reverts commit 87bd2071c756188b6cd577889fb1682831142ceb.
https://bugs.python.org/issue38449
Diffstat (limited to 'Lib/mimetypes.py')
-rw-r--r-- | Lib/mimetypes.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index 9fdd6ebd63..9b42bf6dd2 100644 --- a/Lib/mimetypes.py +++ b/Lib/mimetypes.py @@ -114,8 +114,7 @@ class MimeTypes: but non-standard types. """ url = os.fspath(url) - p = urllib.parse.urlparse(url) - scheme, url = p.scheme, p.path + scheme, url = urllib.parse._splittype(url) if scheme == 'data': # syntax of data URLs: # dataurl := "data:" [ mediatype ] [ ";base64" ] "," data |