New submission from Yaroslav Halchenko <[email protected]>:
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 <[email protected]>
<https://bugs.python.org/issue38449>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com