SIGN IN SIGN UP

bpo-41789: honor object overrides in Enum classes (GH-22250)

EnumMeta double-checks that `__repr__`, `__str__`, `__format__`, and `__reduce_ex__` are not the same as `object`'s, and replaces them if they are -- even if that replacement was intentionally done in the Enum being constructed.  This patch fixes that.

Automerge-Triggered-By: @ethanfurman
E
Ethan Furman committed
22415ad62555d79bd583b4a7d6a96006624a8277
Parent: 47f6ec4
Committed by GitHub <noreply@github.com> on 9/15/2020, 11:28:25 PM