bpo-34938: mimetypes.init() does not overwrite globals by AWhetter · Pull Request #16567 · python/cpython

brandtbucher

@AWhetter

When importing mimetypes.init() into a module scope with
any of encodings_map, suffix_map, types_map, or common_types,
subsequent calls to init() would update the maps in
the local module scope and not in the mimetypes module.
This change makes the original maps always get updated.

@AWhetter

YoSTEALTH

zooba

@AWhetter

@AWhetter

YoSTEALTH

@AWhetter

@AWhetter

iritkatriel