Skip to content

Commit 5dddedf

Browse files
[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 bd7c585) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
1 parent 52d89f5 commit 5dddedf

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Modules/_zstd/compressor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,6 @@ static PyType_Slot zstdcompressor_slots[] = {
702702
PyType_Spec zstdcompressor_type_spec = {
703703
.name = "_zstd.ZstdCompressor",
704704
.basicsize = sizeof(ZstdCompressor),
705-
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HAVE_GC,
705+
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
706706
.slots = zstdcompressor_slots,
707707
};

Modules/_zstd/decompressor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,6 @@ static PyType_Slot ZstdDecompressor_slots[] = {
886886
PyType_Spec zstddecompressor_type_spec = {
887887
.name = "_zstd.ZstdDecompressor",
888888
.basicsize = sizeof(ZstdDecompressor),
889-
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HAVE_GC,
889+
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
890890
.slots = ZstdDecompressor_slots,
891891
};

Modules/_zstd/zstddict.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,6 @@ static PyType_Slot zstddict_slots[] = {
281281
PyType_Spec zstddict_type_spec = {
282282
.name = "_zstd.ZstdDict",
283283
.basicsize = sizeof(ZstdDict),
284-
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HAVE_GC,
284+
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
285285
.slots = zstddict_slots,
286286
};

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy