def _maybeCleanupScopeIndex(family, packed):
 if (sys.platform.startswith('freebsd') and (packed[:2] == '\xfe\x80')):
  return ((packed[:2] + '\x00\x00') + packed[4:])
 return packed

def _maybeCleanupScopeIndex ( family , packed ) : if ( sys . platform . startswith ( 'freebsd' ) and ( packed [ : 2 ] == '\xfe\x80' ) ) : return ( ( packed [ : 2 ] + '\x00\x00' ) + packed [ 4 : ] ) return packed
on freebsd .