1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-07-02 07:20:37 +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()
if f.stem not in app['AntiFeatures']:
app['AntiFeatures'][f.stem] = dict()
with f.open() as fp:
app['AntiFeatures'][f.stem][locale] = fp.read()
app['AntiFeatures'][f.stem][locale] = f.read_text()
def _normalize_type_string(v):