summaryrefslogtreecommitdiffstats
path: root/Lib/fileinput.py
diff options
context:
space:
mode:
authorEthan Furman <ethan@stoneleaf.us>2020-09-16 10:58:33 (GMT)
committerGitHub <noreply@github.com>2020-09-16 10:58:33 (GMT)
commita4677068dd61662f5a56b184d5e3aa07db65b88e (patch)
tree481499cebd1e1e8a301673d04d15dc08581e933b /Lib/fileinput.py
parent95b81e2f8c955823dbf5632a817902b8a4916eaa (diff)
downloadcpython-a4677068dd61662f5a56b184d5e3aa07db65b88e.zip
cpython-a4677068dd61662f5a56b184d5e3aa07db65b88e.tar.gz
cpython-a4677068dd61662f5a56b184d5e3aa07db65b88e.tar.bz2
[3.9] bpo-41789: honor object overrides in Enum classes (GH-22250) (GH-22272)
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.
Diffstat (limited to 'Lib/fileinput.py')
0 files changed, 0 insertions, 0 deletions