def _ToDatastoreError(err):
 return _DatastoreExceptionFromErrorCodeAndDetail(err.application_error, err.error_detail)

def _ToDatastoreError ( err ) : return _DatastoreExceptionFromErrorCodeAndDetail ( err . application_error , err . error_detail )
converts an apiproxy .