View source on GitHub |
A PyYaml presenter for Property.
google.appengine.datastore.datastore_index.PropertyPresenter(
dumper, prop
)
It differs from the default by not outputting mode: null
and direction when
mode is specified. This is done in order to ensure backwards compatibility.
Args | |
---|---|
dumper
|
The Dumper object provided by PyYaml. |
prop
|
The Property object to serialize. |
Returns | |
---|---|
A PyYaml object mapping. |