1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 14:30:11 +01:00

stats/known_apks.txt must be in UTF-8 format on all platforms

This commit is contained in:
Hans-Christoph Steiner 2019-09-25 13:37:54 +02:00
parent a6d35a7ee1
commit 1e1f0db347
No known key found for this signature in database
GPG Key ID: 3E177817BA1B9BFA

View File

@ -2403,7 +2403,7 @@ class KnownApks:
self.path = os.path.join('stats', 'known_apks.txt') self.path = os.path.join('stats', 'known_apks.txt')
self.apks = {} self.apks = {}
if os.path.isfile(self.path): if os.path.isfile(self.path):
with open(self.path, 'r') as f: with open(self.path, 'r', encoding='utf-8') as f:
for line in f: for line in f:
t = line.rstrip().split(' ') t = line.rstrip().split(' ')
if len(t) == 2: if len(t) == 2: