]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39728: Enum: fix duplicate `ValueError` (GH-22277)
authorEthan Furman <ethan@stoneleaf.us>
Wed, 16 Sep 2020 17:26:50 +0000 (10:26 -0700)
committerGitHub <noreply@github.com>
Wed, 16 Sep 2020 17:26:50 +0000 (10:26 -0700)
commitc95ad7a91fbd7636f33a098d3b39964ab083bf49
tree6c35818938314466b2bf1745caed540639421238
parent83f6dcd2070a5dbd9702b32ec4ee150bb716c9a1
bpo-39728: Enum: fix duplicate `ValueError` (GH-22277)

fix default `_missing_` to return `None` instead of raising a `ValueError`
Co-authored-by: Andrey Darascheka <andrei.daraschenka@leverx.com>
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]