mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
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 2b458c1dba
)
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
This commit is contained in:
parent
48cb11bf5b
commit
3e44e9af9e
3 changed files with 6 additions and 1 deletions
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue