Fix static file read encoding on windows

master
Kevin Froman 2019-11-06 15:01:11 -06:00
commit aa07d50eed
1 changed files with 1 additions and 1 deletions

View File

@ -30,6 +30,6 @@ def read_static(file:str, ret_bin:bool=False)->Union[str, bytes]:
mode = 'rb' mode = 'rb'
else: else:
mode = 'r' mode = 'r'
with open(static_file, mode) as f: with open(static_file, mode, encoding='utf-8') as f:
data = f.read() data = f.read()
return data return data