def dumpPacket(buffer):
 return repr([hex(x) for x in buffer])

def dumpPacket ( buffer ) : return repr ( [ hex ( x ) for x in buffer ] )
name: dumppacket args: byte array desc: returns hex value of all bytes in the buffer .