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:
parent
a6d35a7ee1
commit
1e1f0db347
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user