]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35474: Fix mimetypes.guess_all_extensions() potentially mutating list (GH-28286)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 11 Sep 2021 14:44:44 +0000 (17:44 +0300)
committerGitHub <noreply@github.com>
Sat, 11 Sep 2021 14:44:44 +0000 (17:44 +0300)
commit97ea18ecede8bfd33d5ab2dd0e7e2aada2051111
tree375b09e844662e59cb87d86bec7ea4c6a490f6c3
parent5f5b7d0c654488206ac13e27d9a5dcffbd2cc0af
bpo-35474: Fix mimetypes.guess_all_extensions() potentially mutating list (GH-28286)

* Calling guess_all_extensions() with strict=False potentially
  mutated types_map_inv.
* Mutating the result of guess_all_extensions() mutated types_map_inv.
Lib/mimetypes.py
Lib/test/test_mimetypes.py
Misc/NEWS.d/next/Library/2021-09-11-10-45-12.bpo-35474.tEY3SD.rst [new file with mode: 0644]