Skip to content

Commit 70c15bf

Browse files
committed
Switch from comment to assertion
1 parent 08364c1 commit 70c15bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/bytearrayobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ bytearray_iconcat_lock_held(PyObject *op, PyObject *other)
335335

336336
// optimization: Avoid copying the bytes coming in when possible.
337337
if (self->ob_alloc == 0 && _PyObject_IsUniquelyReferenced(other)) {
338-
// note: ob_bytes_object is always the immortal empty bytes here.
338+
assert(_Py_IsImmortal(self->ob_bytes_object));
339339
if (!_canresize(self)) {
340340
return NULL;
341341
}

0 commit comments

Comments
 (0)