Message254992
This should fix the problem. It appears as though the indentation was being stripped from the program text differently depending on how the error was produced. In the case of a syntax error from the parser, the indentation was maintained until it was printed (in print_error_text, correctly handling the offset value). In contrast, errors from the AST were created with PyErr_ProgramText*, which would also strip the indentation (without mutating any offset value).
This patch causes the second code path to not strip whitespace. This shouldn't cause I problem (I think), as it seems to only be used to instantiate SyntaxErrors. |
|
Date |
User |
Action |
Args |
2015-11-20 16:20:39 | mystor | set | recipients:
+ mystor, r.david.murray |
2015-11-20 16:20:39 | mystor | set | messageid: <1448036439.34.0.92222720816.issue25677@psf.upfronthosting.co.za> |
2015-11-20 16:20:39 | mystor | link | issue25677 messages |
2015-11-20 16:20:39 | mystor | create | |
|