File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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). */
29882987static 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 )) {
You can’t perform that action at this time.
0 commit comments