def synctasklet(func):
  taskletfunc = tasklet(func)  # wrap at declaration time.

  @utils.wrapping(func)
  def synctasklet_wrapper(*args, **kwds):
    # pylint: disable=invalid-name
    __ndb_debug__ = utils.func_info(func)
    return taskletfunc(*args, **kwds).get_result()
  return synctasklet_wrapper
Turn tokens into "JSON-compatible" data structures.
dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/tasklets.py/synctasklet--crossover with--dataset/ETHPy150Open FichteFoll/CSScheme/tinycsscheme/tests/__init__.py/jsonify