mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-02 09:10:11 +02:00
use pathlib's read_text() to avoid confusin intended blocks
This commit is contained in:
parent
895e0553a0
commit
f68b77a933
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user