Skip to content

Remove deprecated feature: ext must start with . in mimetypes.add_type #149720

@sobolevn

Description

@sobolevn

Feature or enhancement

See #75223

cpython/Lib/mimetypes.py

Lines 95 to 103 in f5fb491

if ext and not ext.startswith('.'):
from warnings import _deprecated
_deprecated(
"Undotted extensions",
"Using undotted extensions is deprecated and "
"will raise a ValueError in Python {remove}",
remove=(3, 16),
)

Linked PRs

Metadata

Metadata

Assignees

Labels

stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions