summaryrefslogtreecommitdiff
path: root/Python/ceval.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 79874ef4d3..2d16ef8a9e 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -28,6 +28,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "import.h"
#include "sysmodule.h"
+#include "bltinmodule.h"
#include "compile.h"
#include "frameobject.h"
#include "eval.h"
@@ -1691,7 +1692,7 @@ object *
getbuiltins()
{
if (current_frame == NULL)
- return NULL;
+ return getbuiltindict();
else
return current_frame->f_builtins;
}