def asciihexdecode(data):
 decode = (lambda hx: chr(int(hx, 16)))
 out = map(decode, hex_re.findall(data))
 m = trail_re.search(data)
 if m:
  out.append(decode(('%c0' % m.group(1))))
 return ''.join(out)

def asciihexdecode ( data ) : decode = ( lambda hx : chr ( int ( hx , 16 ) ) ) out = map ( decode , hex_re . findall ( data ) ) m = trail_re . search ( data ) if m : out . append ( decode ( ( '%c0' % m . group ( 1 ) ) ) ) return '' . join ( out )
asciihexdecode filter: pdfreference v1 .