Skip to content

Commit c1769e1

Browse files
committed
Update function name.
1 parent 05bff92 commit c1769e1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Include/internal/pycore_sliceobject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ extern "C" {
1414
extern void _PySlice_Fini(PyInterpreterState *);
1515

1616
extern PyObject *
17-
_PyBuildSlice_Consume2(PyObject *start, PyObject *stop);
17+
_PyBuildSlice_ConsumeRefs(PyObject *start, PyObject *stop);
1818

1919
#ifdef __cplusplus
2020
}

Python/ceval.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include "pycore_pymem.h" // _PyMem_IsPtrFreed()
2424
#include "pycore_pystate.h" // _PyInterpreterState_GET()
2525
#include "pycore_range.h" // _PyRangeIterObject
26-
#include "pycore_sliceobject.h" // _PyBuildSlice_Consume2
26+
#include "pycore_sliceobject.h" // _PyBuildSlice_ConsumeRefs
2727
#include "pycore_sysmodule.h" // _PySys_Audit()
2828
#include "pycore_tuple.h" // _PyTuple_ITEMS()
2929
#include "pycore_emscripten_signal.h" // _Py_CHECK_EMSCRIPTEN_SIGNALS
@@ -2145,7 +2145,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
21452145
PyObject *start = POP();
21462146
PyObject *container = TOP();
21472147

2148-
PyObject *slice = _PyBuildSlice_Consume2(start, stop);
2148+
PyObject *slice = _PyBuildSlice_ConsumeRefs(start, stop);
21492149
if (slice == NULL) {
21502150
goto error;
21512151
}
@@ -2165,7 +2165,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
21652165
PyObject *container = TOP();
21662166
PyObject *v = SECOND();
21672167

2168-
PyObject *slice = _PyBuildSlice_Consume2(start, stop);
2168+
PyObject *slice = _PyBuildSlice_ConsumeRefs(start, stop);
21692169
if (slice == NULL) {
21702170
goto error;
21712171
}

0 commit comments

Comments
 (0)