def haddr_to_bin(string):
 try:
  return addrconv.mac.text_to_bin(string)
 except:
  raise ValueError

def haddr_to_bin ( string ) : try : return addrconv . mac . text_to_bin ( string ) except : raise ValueError
parse mac address string in human readable format into internal representation .