'Should we silence the display hook because of \';\'?'

def quiet(self):

    try:
        cell = self.shell.history_manager.input_hist_parsed[(-1)]
    except IndexError:
        return False
    sio = _io.StringIO(cell)
    tokens = list(tokenize.generate_tokens(sio.readline))
    for token in reversed(tokens):
        if (token[0] in (tokenize.ENDMARKER, tokenize.NL, tokenize.NEWLINE, tokenize.COMMENT)):
            continue
        if ((token[0] == tokenize.OP) and (token[1] == ';')):
            return True
        else:
            return False
