def t2b(t):
 clean = rws(t)
 if ((len(clean) % 2) == 1):
  raise ValueError('Even number of characters expected')
 return a2b_hex(clean)

def t2b ( t ) : clean = rws ( t ) if ( ( len ( clean ) % 2 ) == 1 ) : raise ValueError ( 'Even number of characters expected' ) return a2b_hex ( clean )
convert a text string with bytes in hex form to a byte string .