diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2021-09-11 14:44:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-11 14:44:44 (GMT) |
commit | 97ea18ecede8bfd33d5ab2dd0e7e2aada2051111 (patch) | |
tree | 375b09e844662e59cb87d86bec7ea4c6a490f6c3 /Misc | |
parent | 5f5b7d0c654488206ac13e27d9a5dcffbd2cc0af (diff) | |
download | cpython-97ea18ecede8bfd33d5ab2dd0e7e2aada2051111.zip cpython-97ea18ecede8bfd33d5ab2dd0e7e2aada2051111.tar.gz cpython-97ea18ecede8bfd33d5ab2dd0e7e2aada2051111.tar.bz2 |
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2021-09-11-10-45-12.bpo-35474.tEY3SD.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-09-11-10-45-12.bpo-35474.tEY3SD.rst b/Misc/NEWS.d/next/Library/2021-09-11-10-45-12.bpo-35474.tEY3SD.rst new file mode 100644 index 0000000..f4dd3b9 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2021-09-11-10-45-12.bpo-35474.tEY3SD.rst @@ -0,0 +1,3 @@ +Calling :func:`mimetypes.guess_all_extensions` with ``strict=False`` no +longer affects the result of the following call with ``strict=True``. +Also, mutating the returned list no longer affects the global state. |