finesse.script.exceptions.KatScriptError.chunkify¶
- KatScriptError.chunkify()[source]¶
Convert the error script into a dict of line numbers to (str, is_error) sequences.
Each (str, is_error) chunk contains a piece of the script specified in error_items, with the is_error flag set depending on whether each error item appeared last in a error_items sequence, which specifies that it is an error as opposed to just useful related code.