(pkt)
return query
Parse and return a query
Parse and return a query
Parse and return a query
def parse_query(pkt):
    """Parse and return a query"""
    length = endian_int(pkt[1:5])

    pkt = pkt[5:]
    query = ''
    for i in xrange(length - 4):
        query += pkt[i].decode('hex')
    return query
def parse_query ( pkt ) : length = endian_int ( pkt [ 1 : 5 ] ) pkt = pkt [ 5 : ] query = '' for i in xrange ( length - 4 ) : query += pkt [ i ] . decode ( 'hex' ) return query