summaryrefslogtreecommitdiffstats
path: root/Objects/frameobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/frameobject.c')
-rw-r--r--Objects/frameobject.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Objects/frameobject.c b/Objects/frameobject.c
index dd29541..dc21003 100644
--- a/Objects/frameobject.c
+++ b/Objects/frameobject.c
@@ -770,8 +770,6 @@ PyTypeObject PyFrame_Type = {
0, /* tp_dict */
};
-_Py_IDENTIFIER(__builtins__);
-
static void
init_frame(InterpreterFrame *frame, PyFunctionObject *func, PyObject *locals)
{
@@ -1074,7 +1072,7 @@ PyFrame_GetBack(PyFrameObject *frame)
PyObject*
_PyEval_BuiltinsFromGlobals(PyThreadState *tstate, PyObject *globals)
{
- PyObject *builtins = _PyDict_GetItemIdWithError(globals, &PyId___builtins__);
+ PyObject *builtins = PyDict_GetItemWithError(globals, &_Py_ID(__builtins__));
if (builtins) {
if (PyModule_Check(builtins)) {
builtins = _PyModule_GetDict(builtins);