]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.9] bpo-39728: Enum: fix duplicate `ValueError` (GH-22277) (GH-22282)
authorEthan Furman <ethan@stoneleaf.us>
Thu, 17 Sep 2020 00:37:51 +0000 (17:37 -0700)
committerGitHub <noreply@github.com>
Thu, 17 Sep 2020 00:37:51 +0000 (17:37 -0700)
commita9ba8ba9a71f3cb8d274c354ff67b6206abeb8ac
tree75d7cd7a6579d2f0b9ea4d510d142ad21709385d
parent4465df626684fdc8eeb25ca248218cde2eeeb9ec
[3.9] bpo-39728: Enum: fix duplicate `ValueError` (GH-22277) (GH-22282)

fix default `_missing_` to return `None` instead of raising a `ValueError`
Co-authored-by: Andrey Darascheka <andrei.daraschenka@leverx.com>
(cherry picked from commit c95ad7a91fbd7636f33a098d3b39964ab083bf49)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Lib/enum.py
Lib/test/test_enum.py
Misc/ACKS
Misc/NEWS.d/next/Library/2020-02-24-10-58-34.bpo-39728.kOOaHn.rst [new file with mode: 0644]