TenjintShell.check_complete¶
-
TenjintShell.
check_complete
(code)¶ Return whether a block of code is ready to execute, or should be continued
- Parameters
source (string) – Python input code, which can be multiline.
- Returns
status (str) – One of ‘complete’, ‘incomplete’, or ‘invalid’ if source is not a prefix of valid code.
indent (str) – When status is ‘incomplete’, this is some whitespace to insert on the next line of the prompt.