[issue38449] regression - mimetypes guess_type is confused by ; in the filename
Kyle Meyer
report at bugs.python.org
Fri Oct 11 12:13:34 EDT 2019
Kyle Meyer <kyle at kyleam.com> added the comment:
I've performed a bisect the issue with the following script:
#!/bin/sh
make -j3 || exit 125
./python <<\EOF || exit 1
import sys
import mimetypes
res = mimetypes.MimeTypes(strict=False).guess_type(";1.tar.gz")
if res[0] is None:
sys.exit(1)
EOF
That points to 87bd2071c7 (bpo-22347: Update mimetypes.guess_type to allow proper parsing of URLs (GH-15522), 2019-09-05). That commit was included in 3.7.5rc1 when it was cherry picked by 8873bff287.
----------
nosy: +kyleam
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38449>
_______________________________________
More information about the Python-bugs-list
mailing list