diff Objects/fileobject.c @ 42552:ac192f89c109

Kill execfile(), use exec() instead
author Neal Norwitz <nnorwitz@gmail.com>
date Sun, 12 Aug 2007 00:43:29 +0000
parents a24e27f05e48
children 340e6fd5d75f
line wrap: on
line diff
--- a/Objects/fileobject.c	Sun Aug 12 00:03:22 2007 +0000
+++ b/Objects/fileobject.c	Sun Aug 12 00:43:29 2007 +0000
@@ -317,7 +317,7 @@
 		** will cause a pause if we're reading from an
 		** interactive stream, but that is very unlikely
 		** unless we're doing something silly like
-		** execfile("/dev/tty").
+		** exec(open("/dev/tty").read()).
 		*/
 		c = GETC(stream);
 		if ( c != '\n' )