Skip to content

Commit ab86641

Browse files
authored
Update zlibmodule.c
1 parent 62cba6f commit ab86641

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Modules/zlibmodule.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,8 @@ static compobject *
273273
newcompobject(PyTypeObject *type)
274274
{
275275
compobject *self;
276-
assert(type != NULL && type->tp_alloc != NULL);
276+
assert(type != NULL);
277+
assert(type->tp_alloc != NULL);
277278
self = _compobject_CAST(type->tp_alloc(type, 0));
278279
if (self == NULL)
279280
return NULL;
@@ -1124,7 +1125,6 @@ zlib_Compress_copy_impl(compobject *self, PyTypeObject *cls)
11241125
return_value->is_initialised = 1;
11251126

11261127
LEAVE_ZLIB(self);
1127-
assert(PyObject_GC_IsTracked((PyObject *)return_value));
11281128
return (PyObject *)return_value;
11291129

11301130
error:
@@ -1210,7 +1210,6 @@ zlib_Decompress_copy_impl(compobject *self, PyTypeObject *cls)
12101210
return_value->is_initialised = 1;
12111211

12121212
LEAVE_ZLIB(self);
1213-
assert(PyObject_GC_IsTracked((PyObject *)return_value));
12141213
return (PyObject *)return_value;
12151214

12161215
error:

0 commit comments

Comments
 (0)