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 --- Lib/test/test_multibytecodec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/test/test_multibytecodec.py') diff --git a/Lib/test/test_multibytecodec.py b/Lib/test/test_multibytecodec.py index 32c48fbd931..c2f34e593fa 100644 --- a/Lib/test/test_multibytecodec.py +++ b/Lib/test/test_multibytecodec.py @@ -49,7 +49,7 @@ class Test_MultibyteCodec(unittest.TestCase): try: for enc in ALL_CJKENCODINGS: print('# coding:', enc, file=io.open(TESTFN, 'w')) - execfile(TESTFN) + exec(open(TESTFN).read()) finally: test_support.unlink(TESTFN) -- cgit v1.2.3