1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-07-07 01:40:10 +02:00

use pathlib's read_text() to avoid confusin intended blocks

This commit is contained in:
Hans-Christoph Steiner 2023-05-23 11:46:50 +02:00
parent 895e0553a0
commit f68b77a933

View File

@ -880,8 +880,7 @@ def parse_localized_antifeatures(app):
app['AntiFeatures'] = dict() app['AntiFeatures'] = dict()
if f.stem not in app['AntiFeatures']: if f.stem not in app['AntiFeatures']:
app['AntiFeatures'][f.stem] = dict() app['AntiFeatures'][f.stem] = dict()
with f.open() as fp: app['AntiFeatures'][f.stem][locale] = f.read_text()
app['AntiFeatures'][f.stem][locale] = fp.read()
def _normalize_type_string(v): def _normalize_type_string(v):