def IsMacBundle(flavor, spec):
 is_mac_bundle = ((int(spec.get('mac_xctest_bundle', 0)) != 0) or ((int(spec.get('mac_bundle', 0)) != 0) and (flavor == 'mac')))
 if is_mac_bundle:
  assert (spec['type'] != 'none'), ('mac_bundle targets cannot have type none (target "%s")' % spec['target_name'])
 return is_mac_bundle

def IsMacBundle ( flavor , spec ) : is_mac_bundle = ( ( int ( spec . get ( 'mac_xctest_bundle' , 0 ) ) != 0 ) or ( ( int ( spec . get ( 'mac_bundle' , 0 ) ) != 0 ) and ( flavor == 'mac' ) ) ) if is_mac_bundle : assert ( spec [ 'type' ] != 'none' ) , ( 'mac_bundle targets cannot have type none (target "%s")' % spec [ 'target_name' ] ) return is_mac_bundle
returns if |spec| should be treated as a bundle .