def IsMacBundle(flavor, spec):
  is_mac_bundle = (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
Extract CGI variables from a parsed url into a dict.
dataset/ETHPy150Open adblockplus/gyp/pylib/gyp/xcode_emulation.py/IsMacBundle--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/runtime/runtime.py/CgiDictFromParsedUrl