[New-bugs-announce] [issue38449] regression - mimetypes guess_type is confused by ; in the filename
Yaroslav Halchenko
report at bugs.python.org
Fri Oct 11 10:06:40 EDT 2019
New submission from Yaroslav Halchenko <yarikoptic at gmail.com>:
Our tests in DataLad started to fail while building on Debian with Python 3.7.5rc1 whenever they passed just fine previously with 3.7.3rc1. Analysis boiled down to mimetypes
$> ./python3.9 -c 'import mimetypes; mimedb = mimetypes.MimeTypes(strict=False); print(mimedb.guess_type(";1.tar.gz"))'
(None, None)
$> ./python3.9 -c 'import mimetypes; mimedb = mimetypes.MimeTypes(strict=False); print(mimedb.guess_type("1.tar.gz"))'
('application/x-tar', 'gzip')
$> git describe
v3.8.0b1-1174-g2b7dc40b2af
Ref:
- original issue in DataLad: https://github.com/datalad/datalad/issues/3769
----------
components: Library (Lib)
messages: 354455
nosy: Yaroslav.Halchenko
priority: normal
severity: normal
status: open
title: regression - mimetypes guess_type is confused by ; in the filename
type: behavior
versions: Python 3.7, Python 3.8, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38449>
_______________________________________
More information about the New-bugs-announce
mailing list