parameters: (self, name)
return_statement: return bundles[0] if len(bundles) > 0 else None
docstring: Get a bundle from the array of bundles.
  
      Args:
        name: the name of the bundle to return.
      Return:
        The first bundle with the given name, or None if it is not found.
docstring_summary: Get a bundle from the array of bundles.
docstring_tokens: Get a bundle from the array of bundles .
function: def GetBundle(self, name):
      """Get a bundle from the array of bundles.
  
      Args:
        name: the name of the bundle to return.
      Return:
        The first bundle with the given name, or None if it is not found."""
      if not BUNDLES_KEY in self._manifest_data:
        return None
      bundles = [bundle for bundle in self._manifest_data[BUNDLES_KEY]
                 if bundle[NAME_KEY] == name]
      if len(bundles) > 1:
        sys.stderr.write("WARNING: More than one bundle with name"
                         "'%s' exists.\n" % name)
      return bundles[0] if len(bundles) > 0 else None
function_tokens: def GetBundle ( self , name ) : if not BUNDLES_KEY in self . _manifest_data : return None bundles = [ bundle for bundle in self . _manifest_data [ BUNDLES_KEY ] if bundle [ NAME_KEY ] == name ] if len ( bundles ) > 1 : sys . stderr . write ( "WARNING: More than one bundle with name" "'%s' exists.\n" % name ) return bundles [ 0 ] if len ( bundles ) > 0 else None