bpo-34938: mimetypes.init() does not overwrite globals by AWhetter · Pull Request #16567 · python/cpython
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters