![]() |
Load a dispatch.yaml file or string and return a DispatchInfoExternal.
google.appengine.api.dispatchinfo.LoadSingleDispatch(
dispatch_info, open_fn=None
)
Args | |
---|---|
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. |
Returns | |
---|---|
A DispatchInfoExternal instance which represents the contents of the parsed yaml file. |
Raises | |
---|---|
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. |