[issue4717] execfile conversion is not correct

2008-12-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r67900. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue4717] execfile conversion is not correct

2008-12-22 Thread Fabio Zadrozny
New submission from Fabio Zadrozny : 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: exec(compile(open(file).read(), file, 'e