8000 GH-132983: Remove subclassing support from zstd types (#133694) · python/cpython@bd7c585 · GitHub
[go: up one dir, main page]

Skip to content

Commit bd7c585

Browse files
authored
GH-132983: Remove subclassing support from zstd types (#133694)
For consistency with ``bz2``, ``lzma``, and ``zlib``.
1 parent dd670fa commit bd7c585

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)
0