parameters: (flavor, spec)
return_statement: return is_mac_bundle
docstring: Returns if |spec| should be treated as a bundle.
  
    Bundles are directories with a certain subdirectory structure, instead of
    just a single file. Bundle rules do not produce a binary but also package
    resources into that directory.
docstring_summary: Returns if |spec| should be treated as a bundle.
docstring_tokens: Returns if |spec| should be treated as a bundle .
function: def IsMacBundle(flavor, spec):
      """Returns if |spec| should be treated as a bundle.
  
    Bundles are directories with a certain subdirectory structure, instead of
    just a single file. Bundle rules do not produce a binary but also package
    resources into that directory."""
      is_mac_bundle = (
          int(spec.get("mac_xctest_bundle", 0)) != 0
          or int(spec.get("mac_xcuitest_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
function_tokens: def IsMacBundle ( flavor , spec ) : is_mac_bundle = ( int ( spec . get ( "mac_xctest_bundle" , 0 ) ) != 0 or int ( spec . get ( "mac_xcuitest_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