def unpickle ( pickle_file ) : pickle = None with open ( pickle_file , "rb" ) as pickle_f : pickle = dill . load ( pickle_f ) if not pickle : LOG . error ( "Could not load python object from file" ) return pickle
pickle file load python
Unpickle a python object from the given path .
def unpickle(pickle_file):
    """Unpickle a python object from the given path."""
    pickle = None
    with open(pickle_file, "rb") as pickle_f:
        pickle = dill.load(pickle_f)
    if not pickle:
        LOG.error("Could not load python object from file")
    return pickle