Example #1
0
def load_pkl(filename):
    with open(filename, 'rb') as file:
        print (file)
        #print ("test", legacy.LegacyUnpickler(file, encoding='latin1').load())
        return legacy.LegacyUnpickler(file, encoding='latin1').load()
Example #2
0
def load_pkl(filename):
    with open(filename, 'rb') as file:
        return legacy.LegacyUnpickler(file, encoding='latin1').load()
def load_pkl(filename):
    with open(filename, "rb") as file:
        return legacy.LegacyUnpickler(file, encoding="latin1").load()