def _is_pdb_complete(self, source): """ Check if the pdb input is ready to be executed. """ if source and source[0] == '!': source = source[1:] tm = TransformerManager() complete, indent = tm.check_complete(source) if indent is not None: indent = indent * ' ' return complete != 'incomplete', indent
def is_complete(self, source): tm = TransformerManager() check_complete = tm.check_complete(source) responses.append(check_complete)