From: Dmitriy Bogdanov Date: Fri, 8 Apr 2016 18:09:49 +0000 (+0400) Subject: Add an encoding parameter to open apkcache created with Py2 X-Git-Tag: 0.7.0~66^2 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=3f75c95e5faaa0a084b5c4c4e9d147a40c4cc285;p=fdroidserver.git Add an encoding parameter to open apkcache created with Py2 --- diff --git a/fdroidserver/update.py b/fdroidserver/update.py index 0e0aef68..df2b71a4 100644 --- a/fdroidserver/update.py +++ b/fdroidserver/update.py @@ -1208,7 +1208,7 @@ def main(): apkcachefile = os.path.join('tmp', 'apkcache') if not options.clean and os.path.exists(apkcachefile): with open(apkcachefile, 'rb') as cf: - apkcache = pickle.load(cf) + apkcache = pickle.load(cf, encoding='utf-8') else: apkcache = {}