commit | 3b3442011ecec7f512b0ff33e07f66a8f1694ab0 | [log] [tgz] |
---|---|---|
author | Andy Hayden <[email protected]> | Fri Apr 17 19:58:44 2015 -0700 |
committer | Andy Hayden <[email protected]> | Fri Apr 17 23:17:16 2015 -0700 |
tree | c6d9bcc5f3ef69d3a78512d45a75c49912a3c279 | |
parent | 605704e90f95dcbffbbae01985e064b47ad8dd64 [diff] |
Raise a SyntaxError when passed bad syntax. Prior to this change, bad syntax would raise a ParseError which wasn't very descriptive. This also inserts the filename into the exception message so it's clear where the bad syntax was. File "bad.py", line 1 a = 42 ^ IndentationError: unexpected indent