def haddr_to_str(addr):
 if (addr is None):
  return 'None'
 try:
  return addrconv.mac.bin_to_text(addr)
 except:
  raise AssertionError

def haddr_to_str ( addr ) : if ( addr is None ) : return 'None' try : return addrconv . mac . bin_to_text ( addr ) except : raise AssertionError
format mac address in internal representation into human readable form .