diff options
author | Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> | 2021-05-12 21:47:11 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-12 06:47:11 -0700 |
commit | 2b458c1dba4058c808fde25226bb2d91c5a909ca (patch) | |
tree | f360414ffb21f6e1e0de9d18fee969f90fd873cc /Modules/_csv.c | |
parent | 5010c044c73ee55d0fd578cfecd3f4c3f01a4140 (diff) | |
download | cpython-git-2b458c1dba4058c808fde25226bb2d91c5a909ca.tar.gz |
bpo-44089: Allow subclassing of ``csv.Error`` (GH-26008)
* fix subclass error
* Update 2021-05-09-22-52-34.bpo-44089.IoANsN.rst
Diffstat (limited to 'Modules/_csv.c')
-rw-r--r-- | Modules/_csv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_csv.c b/Modules/_csv.c index cade1ca9d4..bdb67fdb48 100644 --- a/Modules/_csv.c +++ b/Modules/_csv.c @@ -1515,7 +1515,7 @@ static PyType_Slot error_slots[] = { PyType_Spec error_spec = { .name = "_csv.Error", - .flags = Py_TPFLAGS_DEFAULT, + .flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, .slots = error_slots, }; |