#NEWLINE# def hex_decode( data , errors = 'strict' ) : #NEWLINE# #INDENT# "b'@ab' -> '40 41 42'" #NEWLINE# return ( unicode ( '' . join ( ( '{:02X} ' . format ( ord ( b ) ) for b in serial . iterbytes ( data ) ) ) ) , len ( data ) )