mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
[3.14] GH-132983: Remove subclassing support from zstd types (GH-133694) (#133762)
GH-132983: Remove subclassing support from zstd types (GH-133694)
For consistency with ``bz2``, ``lzma``, and ``zlib``.
(cherry picked from commit bd7c5859c6
)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This commit is contained in:
parent
52d89f5343
commit
5dddedf327
3 changed files with 3 additions and 3 deletions
|
@ -702,6 +702,6 @@ static PyType_Slot zstdcompressor_slots[] = {
|
|||
PyType_Spec zstdcompressor_type_spec = {
|
||||
.name = "_zstd.ZstdCompressor",
|
||||
.basicsize = sizeof(ZstdCompressor),
|
||||
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HAVE_GC,
|
||||
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
|
||||
.slots = zstdcompressor_slots,
|
||||
};
|
||||
|
|
|
@ -886,6 +886,6 @@ static PyType_Slot ZstdDecompressor_slots[] = {
|
|||
PyType_Spec zstddecompressor_type_spec = {
|
||||
.name = "_zstd.ZstdDecompressor",
|
||||
.basicsize = sizeof(ZstdDecompressor),
|
||||
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HAVE_GC,
|
||||
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
|
||||
.slots = ZstdDecompressor_slots,
|
||||
};
|
||||
|
|
|
@ -281,6 +281,6 @@ static PyType_Slot zstddict_slots[] = {
|
|||
PyType_Spec zstddict_type_spec = {
|
||||
.name = "_zstd.ZstdDict",
|
||||
.basicsize = sizeof(ZstdDict),
|
||||
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HAVE_GC,
|
||||
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
|
||||
.slots = zstddict_slots,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue