Gabriel Genellina <gagsl-...@yahoo.com.ar> added the comment:

This is a patch for the execfile fixer, so it converts
        execfile("fn")
into this:
        exec(compile(open("fn").read()+'\n', "fn", 'exec'))

(Yes, it looks ugly. A better way would be to fix the compile() builtin 
so it does not require the last line of source to end with '\n')

This is my very first incursion into 2to3 so it may be terribly wrong...

----------
keywords: +patch
Added file: http://bugs.python.org/file15281/lib2to3.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7268>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to