[issue4717] execfile conversion is not correct

2008-12-22 Thread Fabio Zadrozny
New submission from Fabio Zadrozny fab...@users.sourceforge.net: In 2to3, execfile(file, globals, locals) is translated to exec(open(file).read(), globals, locals) But that's not correct, as the actual file from the executed code gets wrong with that. The correct thing would be:

[issue4717] execfile conversion is not correct

2008-12-22 Thread Benjamin Peterson
Benjamin Peterson musiccomposit...@gmail.com added the comment: Fixed in r67900. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4717