Skip to content

Commit d37379c

Browse files
eendebakptclaude
andcommitted
Trim comments
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent a62d16a commit d37379c

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

Objects/bytesobject.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2983,8 +2983,7 @@ _PyBytes_FromBuffer(PyObject *x)
29832983

29842984
/* Fast path for a list or tuple of ints.
29852985
Return 1 on success (*result set to the new bytes object),
2986-
0 to fall back to the slow path (an item is not an int; no exception
2987-
set), or -1 on error (with an exception set). */
2986+
0 to fall back to the slow path, or -1 on error (with an exception set). */
29882987
static int
29892988
_PyBytes_FromSequence_lock_held(PyObject *x, PyObject **result)
29902989
{
@@ -3102,11 +3101,8 @@ PyBytes_FromObject(PyObject *x)
31023101
rc = _PyBytes_FromSequence_lock_held(x, &result);
31033102
Py_END_CRITICAL_SECTION_SEQUENCE_FAST();
31043103
if (rc != 0) {
3105-
/* Success (result is the new bytes object) or error
3106-
(result is NULL with an exception set). */
31073104
return result;
31083105
}
3109-
/* rc == 0: an item is not an int; use the slow path below. */
31103106
}
31113107

31123108
if (!PyUnicode_Check(x)) {

0 commit comments

Comments
 (0)