(token, line, pos)
return line.partition(token)[2]
Return line without token
Return line without token
Return line without token
def consume_token(token, line, pos):
    """Return line without token"""
    if token != line.split(None, 1)[0]:
        _LOG.error("Unexpected token, expected '%s', got '%s'." %
                   (token, line.split(None, 1)[0]))

    return line.partition(token)[2]
def consume_token ( token , line , pos ) : if token != line . split ( None , 1 ) [ 0 ] : _LOG . error ( "Unexpected token, expected '%s', got '%s'." % ( token , line . split ( None , 1 ) [ 0 ] ) ) return line . partition ( token ) [ 2 ]