Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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