1 2 3 4 5 6 7 8
import cPickle as pickle def unpickle_file(filepath): f = open(filepath, "rb") result = pickle.load(f) f.close() return result