gliphy / rpms / mcomix3

Forked from rpms/mcomix3 2 years ago
Clone
Blob Blame History Raw
From 8df033bd3e2c267a21c9a646c811470d5880f1a3 Mon Sep 17 00:00:00 2001
From: mcomix3 Fedora maintainer <mcomix3-owner@fedoraproject.org>
Date: Mon, 4 Nov 2019 16:10:09 +0900
Subject: [PATCH] Lower pickle protocol version for mcomix compatibility

---
 mcomix/mcomix/bookmark_backend.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mcomix/mcomix/bookmark_backend.py b/mcomix/mcomix/bookmark_backend.py
index d1080be..1ae4d2a 100644
--- a/mcomix/mcomix/bookmark_backend.py
+++ b/mcomix/mcomix/bookmark_backend.py
@@ -187,10 +187,10 @@ class __BookmarksStore(object):
             self._bookmarks = list(set(self._bookmarks + new_bookmarks))
 
         with open(constants.BOOKMARK_PICKLE_PATH, 'wb') as fd:
-            pickle.dump(constants.VERSION, fd, pickle.HIGHEST_PROTOCOL)
+            pickle.dump(constants.VERSION, fd, 2)
 
             packs = [bookmark.pack() for bookmark in self._bookmarks]
-            pickle.dump(packs, fd, pickle.HIGHEST_PROTOCOL)
+            pickle.dump(packs, fd, 2)
 
         self._bookmarks_mtime = time.time()
 
-- 
2.23.0