Ejemplo n.º 1
0
def maybe_dill_loads(o):
  """Unpickle using cPickle or the Dill pickler as a fallback."""
  try:
    return pickle.loads(o)
  except Exception:  # pylint: disable=broad-except
    return dill.loads(o)
Ejemplo n.º 2
0
def maybe_dill_loads(o):
    """Unpickle using cPickle or the Dill pickler as a fallback."""
    try:
        return pickle.loads(o)
    except Exception:  # pylint: disable=broad-except
        return dill.loads(o)