Message95016
| Author |
ggenellina |
| Recipients |
benjamin.peterson, flashk, ggenellina |
| Date |
2009年11月07日.10:21:53 |
| SpamBayes Score |
0.0031445979 |
| Marked as misclassified |
No |
| Message-id |
<1257589316.96.0.261127266574.issue7268@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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... |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2009年11月07日 10:21:57 | ggenellina | set | recipients:
+ ggenellina, benjamin.peterson, flashk |
| 2009年11月07日 10:21:56 | ggenellina | set | messageid: <1257589316.96.0.261127266574.issue7268@psf.upfronthosting.co.za> |
| 2009年11月07日 10:21:55 | ggenellina | link | issue7268 messages |
| 2009年11月07日 10:21:54 | ggenellina | create |
|