Message50106
| Author |
rcmiller |
| Recipients |
| Date |
2006年04月24日.23:12:04 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
This patch raises an IndentationError rather than a
generic "invalid syntax" error for unexpected
indentation. Code to do this was already in
pythonrun.c:err_input() but was not being reached due
to a failure to pass the INDENT token in the perrdetail
structure. The patch also adds tests for the 3 kinds
of indentation errors (unexpected indent, no indent
where required, invalid outdent level) to test_syntax.py .
|
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年08月23日 15:48:29 | admin | link | issue1475845 messages |
| 2007年08月23日 15:48:29 | admin | create |
|