commit | 016880229a369a3fb419f3eed28b6db7c342fe71 | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Sun Aug 12 00:43:29 2007 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Sun Aug 12 00:43:29 2007 +0000 |
tree | 9b11de5c197bc556dd515e035327673765cd4871 | |
parent | 41eaedd3613cebc83e6b9925499369992c7a7770 [diff] |
Kill execfile(), use exec() instead
diff --git a/Objects/fileobject.c b/Objects/fileobject.c index 34bca68..8175404 100644 --- a/Objects/fileobject.c +++ b/Objects/fileobject.c
@@ -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' )