From 016880229a369a3fb419f3eed28b6db7c342fe71 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Sun, 12 Aug 2007 00:43:29 +0000 Subject: Kill execfile(), use exec() instead --- Mac/Modules/file/filesupport.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Mac/Modules/file/filesupport.py') diff --git a/Mac/Modules/file/filesupport.py b/Mac/Modules/file/filesupport.py index 37aeb508a0..de45ed4042 100644 --- a/Mac/Modules/file/filesupport.py +++ b/Mac/Modules/file/filesupport.py @@ -340,7 +340,7 @@ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(FSSpec, PyMac_GetFSSpec); PyMac_INIT_TOOLBOX_OBJECT_CONVERT(FSRef, PyMac_GetFSRef); """ -execfile(string.lower(MODPREFIX) + 'typetest.py') +exec(open(string.lower(MODPREFIX) + 'typetest.py').read()) # Our object types: class FSCatalogInfoDefinition(PEP253Mixin, ObjectDefinition): @@ -806,7 +806,7 @@ functions = [] alias_methods = [] fsref_methods = [] fsspec_methods = [] -execfile(INPUTFILE) +exec(open(INPUTFILE).read()) # Manual generators: FSRefMakePath_body = """ -- cgit v1.2.1