]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.8] bpo-39728: Enum: fix duplicate `ValueError` (GH-22277) (GH-22283)
authorEthan Furman <ethan@stoneleaf.us>
Thu, 17 Sep 2020 00:38:14 +0000 (17:38 -0700)
committerGitHub <noreply@github.com>
Thu, 17 Sep 2020 00:38:14 +0000 (17:38 -0700)
commit5efb1a77e75648012f8b52960c8637fc296a5c6d
tree8cfbebff96a1ad92a8ab64f31ee24e923631babb
parent007eddad3b809e1555391dc7e8168918933b6184
[3.8] bpo-39728: Enum: fix duplicate `ValueError` (GH-22277) (GH-22283)

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]