google.appengine.api.dispatchinfo.LoadSingleDispatch

Load a dispatch.yaml file or string and return a DispatchInfoExternal.

dispatch_info The contents of a dispatch.yaml file as a string, or an open file object.
open_fn Function for opening files. Unused here, needed to provide a polymorphic API used by appcfg.py yaml parsing.

A DispatchInfoExternal instance which represents the contents of the parsed yaml file.

MalformedDispatchConfigurationError The yaml file contains multiple dispatch sections or is missing a required value.
yaml_errors.EventError An error occured while parsing the yaml file.