Skip to content

Commit 85bdaf9

Browse files
committed
Fix typo in function name.
1 parent 1573e3d commit 85bdaf9

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Include/internal/pycore_function.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include "Python.h"
66

77
PyFunctionObject *
8-
_PyFunctionFrom_Constructor(PyFrameConstructor *constr);
8+
_PyFunction_FromConstructor(PyFrameConstructor *constr);
99

1010

1111
#endif /* !Py_INTERNAL_FUNCTION_H */

Objects/frameobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include "pycore_moduleobject.h" // _PyModule_GetDict()
66
#include "pycore_object.h" // _PyObject_GC_UNTRACK()
77
#include "pycore_code.h" // CO_FAST_LOCAL, etc.
8-
#include "pycore_function.h" // _PyFunctionFrom_Constructor()
8+
#include "pycore_function.h" // _PyFunction_FromConstructor()
99

1010
#include "frameobject.h" // PyFrameObject
1111
#include "pycore_frame.h"
@@ -872,7 +872,7 @@ PyFrame_New(PyThreadState *tstate, PyCodeObject *code,
872872
.fc_kwdefaults = NULL,
873873
.fc_closure = NULL
874874
};
875-
PyFunctionObject *func = _PyFunctionFrom_Constructor(&desc);
875+
PyFunctionObject *func = _PyFunction_FromConstructor(&desc);
876876
if (func == NULL) {
877877
return NULL;
878878
}

Objects/funcobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
static uint32_t next_func_version = 1;
1111

1212
PyFunctionObject *
13-
_PyFunctionFrom_Constructor(PyFrameConstructor *constr)
13+
_PyFunction_FromConstructor(PyFrameConstructor *constr)
1414
{
1515

1616
PyFunctionObject *op = PyObject_GC_New(PyFunctionObject, &PyFunction_Type);

Python/ceval.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,7 @@ PyEval_EvalCode(PyObject *co, PyObject *globals, PyObject *locals)
11351135
.fc_kwdefaults = NULL,
11361136
.fc_closure = NULL
11371137
};
1138-
PyFunctionObject *func = _PyFunctionFrom_Constructor(&desc);
1138+
PyFunctionObject *func = _PyFunction_FromConstructor(&desc);
11391139
if (func == NULL) {
11401140
return NULL;
11411141
}
@@ -5837,7 +5837,7 @@ PyEval_EvalCodeEx(PyObject *_co, PyObject *globals, PyObject *locals,
58375837
.fc_kwdefaults = kwdefs,
58385838
.fc_closure = closure
58395839
};
5840-
PyFunctionObject *func = _PyFunctionFrom_Constructor(&constr);
5840+
PyFunctionObject *func = _PyFunction_FromConstructor(&constr);
58415841
if (func == NULL) {
58425842
return NULL;
58435843
}

0 commit comments

Comments
 (0)