Author benjamin.peterson
Recipients benjamin.peterson, flashk
Date 2009-11-06.01:48:38
SpamBayes Score 1.40118e-10
Marked as misclassified No
Message-id <1afaf6160911051748y2e48a620lbfe91fce2307408e@mail.gmail.com>
In-reply-to <1257471498.88.0.704911920359.issue7268@psf.upfronthosting.co.za>
Content
2009/11/5 flashk <report@bugs.python.org>:
>
> flashk <flashk@gmail.com> added the comment:
>
> Ok, but why am I still getting a syntax error in both 2.6 and 3.1 on the
> file, even after converting the newlines?
>
> If I remove the trailing indentation then everything works properly on 2.6
> and 3.1, even with DOS newlines.
>
> It just seems that exec does not properly handle code that ends with an
> empty indented line, but execfile handles it correctly.

Well, it works for me with the empty newline. Can you isolate the exact problem?
History
Date User Action Args
2009-11-06 01:48:39benjamin.petersonsetrecipients: + benjamin.peterson, flashk
2009-11-06 01:48:38benjamin.petersonlinkissue7268 messages
2009-11-06 01:48:38benjamin.petersoncreate