def get_protobuf_from_entity(entities):
    if not entities:
        return None
    elif isinstance(entities, db.Model):
        return db.model_to_protobuf(entities).Encode()
    elif isinstance(entities, dict):
        return dict((k, db.model_to_protobuf(v).Encode()) for k, v in \
        entities.iteritems())
    else:
        return [db.model_to_protobuf(x).Encode() for x in entities]
Opens mailslot in nonblocking mode
dataset/ETHPy150Open moraes/tipfy/tipfy/appengine/db/__init__.py/get_protobuf_from_entity--crossover with--dataset/ETHPy150Open ioflo/ioflo/ioflo/aio/win/wining.py/WinMailslotNb.open