chiark / gitweb /
Add an encoding parameter to open apkcache created with Py2
authorDmitriy Bogdanov <di72nn@gmail.com>
Fri, 8 Apr 2016 18:09:49 +0000 (22:09 +0400)
committerDmitriy Bogdanov <di72nn@gmail.com>
Tue, 12 Apr 2016 08:42:41 +0000 (12:42 +0400)
fdroidserver/update.py

index 0e0aef68458ee100841929b6e1cad2c7f5f9d07b..df2b71a47a2b9e8ba76ab4cb67223aac8bbf35e2 100644 (file)
@@ -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 = {}