use getbuiltins() everywhere, it defaults to getbuiltidict()

This commit is contained in:
Guido van Rossum 1995-01-12 11:37:57 +00:00
parent 922d8ff803
commit 94390ec2a6
3 changed files with 4 additions and 3 deletions

View file

@ -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;
}