specify encoding for uncompressed files in kompress.kopen

This commit is contained in:
Dima Gerasimov 2020-04-19 21:48:16 +01:00
parent 4cd6df86cf
commit ab61a95701

View file

@ -31,6 +31,7 @@ def kopen(path: PathIsh, *args, **kwargs): # TODO is it bytes stream??
elif suf in {'.zstd'}:
return _zstd_open(pp)
else:
kwargs['encoding'] = 'utf-8'
return pp.open(*args, **kwargs)