diff Python/ceval.c @ 2128:92da8901517e legacy-trunk

use getbuiltins() everywhere, it defaults to getbuiltidict()
author Guido van Rossum <guido@python.org>
date Thu, 12 Jan 1995 11:37:57 +0000
parents b7be0382f9ee
children 5fd8524dd03a
line wrap: on
line diff
--- a/Python/ceval.c	Thu Jan 12 11:31:04 1995 +0000
+++ b/Python/ceval.c	Thu Jan 12 11:37:57 1995 +0000
@@ -28,6 +28,7 @@
 
 #include "import.h"
 #include "sysmodule.h"
+#include "bltinmodule.h"
 #include "compile.h"
 #include "frameobject.h"
 #include "eval.h"
@@ -1691,7 +1692,7 @@
 getbuiltins()
 {
 	if (current_frame == NULL)
-		return NULL;
+		return getbuiltindict();
 	else
 		return current_frame->f_builtins;
 }