gliphy / rpms / mcomix3

Forked from rpms/mcomix3 2 years ago
Clone

Blame 0004-Lower-pickle-protocol-version-for-mcomix-compatibili.patch

b25042f
From 8df033bd3e2c267a21c9a646c811470d5880f1a3 Mon Sep 17 00:00:00 2001
b25042f
From: mcomix3 Fedora maintainer <mcomix3-owner@fedoraproject.org>
b25042f
Date: Mon, 4 Nov 2019 16:10:09 +0900
b25042f
Subject: [PATCH] Lower pickle protocol version for mcomix compatibility
b25042f
b25042f
---
b25042f
 mcomix/mcomix/bookmark_backend.py | 4 ++--
b25042f
 1 file changed, 2 insertions(+), 2 deletions(-)
b25042f
b25042f
diff --git a/mcomix/mcomix/bookmark_backend.py b/mcomix/mcomix/bookmark_backend.py
b25042f
index d1080be..1ae4d2a 100644
b25042f
--- a/mcomix/mcomix/bookmark_backend.py
b25042f
+++ b/mcomix/mcomix/bookmark_backend.py
b25042f
@@ -187,10 +187,10 @@ class __BookmarksStore(object):
b25042f
             self._bookmarks = list(set(self._bookmarks + new_bookmarks))
b25042f
 
b25042f
         with open(constants.BOOKMARK_PICKLE_PATH, 'wb') as fd:
b25042f
-            pickle.dump(constants.VERSION, fd, pickle.HIGHEST_PROTOCOL)
b25042f
+            pickle.dump(constants.VERSION, fd, 2)
b25042f
 
b25042f
             packs = [bookmark.pack() for bookmark in self._bookmarks]
b25042f
-            pickle.dump(packs, fd, pickle.HIGHEST_PROTOCOL)
b25042f
+            pickle.dump(packs, fd, 2)
b25042f
 
b25042f
         self._bookmarks_mtime = time.time()
b25042f
 
b25042f
-- 
b25042f
2.23.0
b25042f