def convert_yielded(yielded):
 if isinstance(yielded, (list, dict)):
  return multi_future(yielded)
 elif is_future(yielded):
  return yielded
 else:
  raise BadYieldError(('yielded unknown object %r' % (yielded,)))

def convert_yielded ( yielded ) : if isinstance ( yielded , ( list , dict ) ) : return multi_future ( yielded ) elif is_future ( yielded ) : return yielded else : raise BadYieldError ( ( 'yielded unknown object %r' % ( yielded , ) ) )
convert a yielded object into a .