mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
gh-92839: fixed typo in _bisectmodule.c (line 131) (GH-92849)
(cherry picked from commit 7fa9b7daa5
)
Co-authored-by: oda-gitso <105083118+oda-gitso@users.noreply.github.com>
This commit is contained in:
parent
48647d00bf
commit
85cb7f08ed
3 changed files with 9 additions and 2 deletions
|
@ -128,7 +128,7 @@ _bisect_insort_right_impl(PyObject *module, PyObject *a, PyObject *x,
|
|||
index = internal_bisect_right(a, x, lo, hi, key);
|
||||
} else {
|
||||
key_x = PyObject_CallOneArg(key, x);
|
||||
if (x == NULL) {
|
||||
if (key_x == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
index = internal_bisect_right(a, key_x, lo, hi, key);
|
||||
|
@ -256,7 +256,7 @@ _bisect_insort_left_impl(PyObject *module, PyObject *a, PyObject *x,
|
|||
index = internal_bisect_left(a, x, lo, hi, key);
|
||||
} else {
|
||||
key_x = PyObject_CallOneArg(key, x);
|
||||
if (x == NULL) {
|
||||
if (key_x == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
index = internal_bisect_left(a, key_x, lo, hi, key);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue