diff --git a/src/metadata.py b/src/metadata.py index 500c345a..74c92709 100755 --- a/src/metadata.py +++ b/src/metadata.py @@ -107,12 +107,12 @@ class Metadata(): ''' @staticmethod def restrictedPonies(ponydir, logic): - import cPickle + import pickle passed = [] if os.path.exists(ponydir + 'metadata'): data = None with open(ponydir + 'metadata', 'rb') as file: - data = cPickle.load(file) + data = pickle.load(file) for ponydata in data: (pony, meta) = ponydata if logic(meta): diff --git a/src/ponysay-tool.py b/src/ponysay-tool.py index e207ed3f..49380416 100755 --- a/src/ponysay-tool.py +++ b/src/ponysay-tool.py @@ -646,9 +646,9 @@ class PonysayTool(): if (len(test) == 0) and (len(key) > 0): data.append((key, makeset(value.replace(' ', '')))) everything.append((ponyfile[:-5], data)) - import cPickle + import pickle with open((ponydir + '/metadata').replace('//', '/'), 'wb') as file: - cPickle.dump(everything, file, -1) + pickle.dump(everything, file, -1) file.flush()