diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-05-12 14:02:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-12 14:02:46 (GMT) |
commit | 3e44e9af9ea4c5e82912a01f256d4abcae96f32b (patch) | |
tree | 932d89cd13d7386b5ed3756d1a82198cd4e98652 /Modules | |
parent | 48cb11bf5b426bd3f1d010f987c03115661261b7 (diff) | |
download | cpython-3e44e9af9ea4c5e82912a01f256d4abcae96f32b.zip cpython-3e44e9af9ea4c5e82912a01f256d4abcae96f32b.tar.gz cpython-3e44e9af9ea4c5e82912a01f256d4abcae96f32b.tar.bz2 |
bpo-44089: Allow subclassing of ``csv.Error`` (GH-26008) (GH-26066)
* fix subclass error
* Update 2021-05-09-22-52-34.bpo-44089.IoANsN.rst
(cherry picked from commit 2b458c1dba4058c808fde25226bb2d91c5a909ca)
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Diffstat (limited to 'Modules')
-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 cade1ca..bdb67fd 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, }; |