def _is_complete(self, source, interactive):
complete = self._input_splitter.push(source)<EOL>if interactive:<EOL><INDENT>complete = not self._input_splitter.push_accepts_more()<EOL><DEDENT>return complete<EOL>
Returns whether 'source' can be completely processed and a new
            prompt created. When triggered by an Enter/Return key press,
            'interactive' is True; otherwise, it is False.