Skip to content

Commit 8cae44b

Browse files
Update Objects/bytesobject.c
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
1 parent 184f050 commit 8cae44b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/bytesobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3017,7 +3017,7 @@ _PyBytes_FromSequence_lock_held(PyObject *x, PyObject **result)
30173017
}
30183018
*str++ = (char) value;
30193019
}
3020-
*result = PyBytesWriter_FinishWithPointer(writer, str);
3020+
*result = PyBytesWriter_Finish(writer);
30213021
return *result != NULL ? 1 : -1;
30223022
}
30233023

0 commit comments

Comments
 (0)